Sha256: 939adcc4e886c028f700126301d9e292fef4e7cb1070fe701f869c9c3073f99b

Contents?: true

Size: 463 Bytes

Versions: 43

Compression:

Stored size: 463 Bytes

Contents

proc_name = "title-background-color"

if @title_background_color.nil?
  theme_exit("must specify @title_background_color!!")
end

match(TitleSlide) do |slides|
  slides.delete_pre_draw_proc_by_name(proc_name)

  slides.add_pre_draw_proc(proc_name) do |slide, canvas, x, y, w, h, simulation|
    unless simulation
      args = [0, 0, canvas.width, canvas.height, @title_background_color]
      canvas.draw_rectangle(true, *args)
    end
    [x, y, w, h]
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rabbit-0.6.4 lib/rabbit/theme/title-background-color/title-background-color.rb
rabbit-0.6.3 lib/rabbit/theme/title-background-color/title-background-color.rb
rabbit-0.6.2 lib/rabbit/theme/title-background-color/title-background-color.rb