Class: WhirledPeas::Settings::Theme
- Inherits:
-
Object
- Object
- WhirledPeas::Settings::Theme
- Defined in:
- lib/whirled_peas/settings/theme.rb
Instance Attribute Summary collapse
-
#bg_color ⇒ Object
Returns the value of attribute bg_color.
-
#border_style ⇒ Object
Returns the value of attribute border_style.
-
#color ⇒ Object
Returns the value of attribute color.
-
#title_font ⇒ Object
Returns the value of attribute title_font.
Instance Method Summary collapse
- #axis_color ⇒ Object
- #axis_color=(value) ⇒ Object
- #border_color ⇒ Object
- #border_color=(value) ⇒ Object
- #highlight_bg_color ⇒ Object
- #highlight_bg_color=(value) ⇒ Object
- #highlight_color ⇒ Object
- #highlight_color=(value) ⇒ Object
Instance Attribute Details
#bg_color ⇒ Object
Returns the value of attribute bg_color.
10 11 12 |
# File 'lib/whirled_peas/settings/theme.rb', line 10 def bg_color @bg_color end |
#border_style ⇒ Object
Returns the value of attribute border_style.
10 11 12 |
# File 'lib/whirled_peas/settings/theme.rb', line 10 def border_style @border_style end |
#color ⇒ Object
Returns the value of attribute color.
10 11 12 |
# File 'lib/whirled_peas/settings/theme.rb', line 10 def color @color end |
#title_font ⇒ Object
Returns the value of attribute title_font.
10 11 12 |
# File 'lib/whirled_peas/settings/theme.rb', line 10 def title_font @title_font end |
Instance Method Details
#axis_color ⇒ Object
16 17 18 |
# File 'lib/whirled_peas/settings/theme.rb', line 16 def axis_color @axis_color || border_color end |
#axis_color=(value) ⇒ Object
12 13 14 |
# File 'lib/whirled_peas/settings/theme.rb', line 12 def axis_color=(value) @axis_color = TextColor.validate!(value) end |
#border_color ⇒ Object
28 29 30 |
# File 'lib/whirled_peas/settings/theme.rb', line 28 def border_color @border_color || color end |
#border_color=(value) ⇒ Object
24 25 26 |
# File 'lib/whirled_peas/settings/theme.rb', line 24 def border_color=(value) @border_color = TextColor.validate!(value) end |
#highlight_bg_color ⇒ Object
44 45 46 |
# File 'lib/whirled_peas/settings/theme.rb', line 44 def highlight_bg_color @highlight_bg_color || color.as_bg_color end |
#highlight_bg_color=(value) ⇒ Object
40 41 42 |
# File 'lib/whirled_peas/settings/theme.rb', line 40 def highlight_bg_color=(value) @highlight_bg_color = BgColor.validate!(value) end |
#highlight_color ⇒ Object
52 53 54 |
# File 'lib/whirled_peas/settings/theme.rb', line 52 def highlight_color @highlight_color || bg_color.as_text_color end |
#highlight_color=(value) ⇒ Object
48 49 50 |
# File 'lib/whirled_peas/settings/theme.rb', line 48 def highlight_color=(value) @highlight_color = TextColor.validate!(value) end |