Sha256: 960e556b0cac35571703e1b6bb18052a200f3092ea442331ee2191f315b025c8

Contents?: true

Size: 903 Bytes

Versions: 43

Compression:

Stored size: 903 Bytes

Contents

include_theme("default-title-slide")
include_theme("default-slide")

sidebar = Proc.new do |slide, canvas, x, y, w, h, simulation|
  unless simulation
    line_x = canvas.width * 0.2
    canvas.draw_line(line_x, 0, line_x, canvas.height, "red")
    canvas.draw_rectangle(true, 0, 0, line_x, canvas.height, "#fff1ec")
  end
  [x, y, w, h]
end

match(TitleSlide) do |slides|
  name = "title-slide"
  
  slides.delete_post_draw_proc_by_name(name)
  
  slides.add_pre_draw_proc(name, &sidebar)
end

match(TitleSlide, Title) do |titles|
  titles.prop_set("foreground", "red")
end

@title_shadow_color = "#c09090"
include_theme("title-shadow")

match(Slide) do |slides|
  name = "slide"
  
  slides.delete_post_draw_proc_by_name(name)
  
  slides.add_pre_draw_proc(name, &sidebar)
end

match(Slide, Body) do |bodies|
  padding = @space * 2
  bodies.padding_left = padding
  bodies.padding_right = padding
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-3.0.2 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-3.0.1 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-3.0.0 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.2.1 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.2.0 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.9 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.8 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.7 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.6 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.5 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.4 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.3 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.2 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.1 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.1.0 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.0.9 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.0.8 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.0.7 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb
rabbit-2.0.6 lib/rabbit/theme/ruby-gnome2-slide/ruby-gnome2-slide.rb