Sha256: 83df3491f5577352b127994186b906b80575e8062c525b29aedd805e2d3999c9

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

must_set_variables = %w(foreground background color light_color bright_color
                        graffiti_color)

@color_circle_open_quote_image ||= nil
@color_circle_close_quote_image ||= nil

not_set_variables = []
must_set_variables.each do |name|
  variable_name = "@color_circle_#{name}"
  if instance_variable_get(variable_name).nil?
    not_set_variables << variable_name
  end
end

unless not_set_variables.empty?
  format = _("required variables aren't set: %s")
  canvas.logger.error(format % not_set_variables.inspect)
  theme_exit
end

set_graffiti_color(@color_circle_graffiti_color)

set_progress_foreground(@color_circle_color)
set_progress_background(@color_circle_bright_color)

include_theme("default-icon")

include_theme("image")
include_theme("table")

include_theme("color-circle-title-slide")
include_theme("color-circle-title-text")
include_theme("color-circle-slide")
include_theme("color-circle-text")
include_theme("color-circle-item-mark")
include_theme("color-circle-preformatted")
include_theme("color-circle-block-quote")
include_theme("color-circle-foot-text")
include_theme("color-circle-description")
include_theme("color-circle-method-list")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rabbit-0.9.2 lib/rabbit/theme/color-circle/color-circle.rb
rabbit-0.9.1 lib/rabbit/theme/color-circle/color-circle.rb
rabbit-0.9.0 lib/rabbit/theme/color-circle/color-circle.rb
rabbit-0.6.4 lib/rabbit/theme/color-circle/color-circle.rb
rabbit-0.6.3 lib/rabbit/theme/color-circle/color-circle.rb
rabbit-0.6.2 lib/rabbit/theme/color-circle/color-circle.rb