Class: WhirledPeas::Settings::Theme

Inherits:
Object
  • Object
show all
Defined in:
lib/whirled_peas/settings/theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bg_colorObject

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_styleObject

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

#colorObject

Returns the value of attribute color.



10
11
12
# File 'lib/whirled_peas/settings/theme.rb', line 10

def color
  @color
end

#title_fontObject

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_colorObject



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_colorObject



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_colorObject



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_colorObject



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