Sha256: d845f5577e4ff6f8abc4284a7ea7f9f550031441b1bca2815c06c1cfd8fb871b

Contents?: true

Size: 1.59 KB

Versions: 42

Compression:

Stored size: 1.59 KB

Contents

include_theme("newline-in-slides")
include_theme("default-slide")
include_theme("default-title-text")
include_theme("default-text")
include_theme("image")
include_theme("lightning-talk-toolkit")

match(TitleSlide) do |slides|
  slides.horizontal_centering = true
  slides.vertical_centering = true

  slides.margin_left = @margin_left
  slides.margin_right = @margin_right
  slides.margin_top = @margin_top
  slides.margin_bottom = @margin_bottom
end

match(TitleSlide, "*") do |elems|
  set_font_family(elems)
  elems.prop_set("size", @large_font_size)
end

match(TitleSlide, Title) do |titles|
  set_font_family(titles)
  titles.prop_set("size", @x_large_font_size)
  titles.prop_set("weight", "heavy")

  space = screen_size(5)
  titles.add_post_draw_proc do |title, canvas, x, y, w, h, simulation|
    if title.next_element.is_a?(Subtitle)
      [x, y, w, h]
    else
      [x, y + space, w, h - space]
    end
  end
end

match(TitleSlide, Subtitle) do |titles|
  set_font_family(titles)
  titles.prop_set("size", @normal_font_size)

  space = screen_size(5)
  titles.add_post_draw_proc do |title, canvas, x, y, w, h, simulation|
    if title.next_element.is_a?(Subtitle)
      [x, y, w, h]
    else
      [x, y + space, w, h - space]
    end
  end
end

match(TitleSlide, ContentSource) do |titles|
  set_font_family(titles)
  titles.prop_set("size", @small_font_size)
  titles.prop_set("style", "italic")
end

match(TitleSlide, Institution) do |titles|
  set_font_family(titles)
  titles.prop_set("size", @normal_font_size)
  titles.prop_set("style", "italic")
end

match(Slide) do |slides|
  slides.lightning_talk
end

Version data entries

42 entries across 42 versions & 1 rubygems

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