Sha256: 3f58fcf33d6cc0bd675a4b0648e1f42151f864c80c8cb61f2f7c4e7e387957d9

Contents?: true

Size: 1.67 KB

Versions: 28

Compression:

Stored size: 1.67 KB

Contents

name = "slide-footer-info"

@slide_footer_info_line_width ||= screen_y(0.1)
@slide_footer_info_line_color ||= nil
if @slide_footer_info_line_color.nil?
  @slide_footer_info_line_params ||= {
    :pattern => {
      :base => [0, 0, canvas.width, 0],
      :type => :linear,
      :color_stops => [
                       [0.0, 1, 1, 1],
                       [0.3, 0, 0, 0],
                       [0.7, 0, 0, 0],
                       [1.0, 1, 1, 1],
                      ],
    }
  }
else
  @slide_footer_info_line_color = "#666"
end
@slide_footer_info_text_size ||= screen_size(1.5 * Pango::SCALE)
@slide_footer_info_x_margin ||= screen_x(1)
@slide_footer_info_text_color ||= "#666"
@slide_footer_info_text_over_line ||= false
@slide_footer_info_base_y ||= canvas.height - @margin_bottom

@slide_footer_info_left_text ||= nil
@slide_footer_info_right_text ||= nil

include_theme("edge-info-toolkit")

match(SlideElement) do
  delete_pre_draw_proc_by_name(name)

  break if @slide_footer_info_uninstall

  draw_edge_info(:name => name,
                 :line_width => @slide_footer_info_line_width,
                 :line_color => @slide_footer_info_line_color,
                 :line_params => @slide_footer_info_line_params,
                 :left_text => @slide_footer_info_left_text,
                 :right_text => @slide_footer_info_right_text,
                 :text_position => :lower,
                 :text_over_line => @slide_footer_info_text_over_line,
                 :text_size => @slide_footer_info_text_size,
                 :text_color => @slide_footer_info_text_color,
                 :x_margin => @slide_footer_info_x_margin,
                 :y => @slide_footer_info_base_y)
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rabbit-3.0.0 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.2.1 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.2.0 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.9 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.8 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.7 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.6 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.5 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.4 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.3 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.2 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.1 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.1.0 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.9 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.8 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.7 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.6 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.5 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.4 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb
rabbit-2.0.3 lib/rabbit/theme/slide-footer-info/slide-footer-info.rb