Module: Fuso::Styles
- Defined in:
- lib/fuso/styles.rb
Constant Summary collapse
- ACCENT =
Colors
"#00FF88"- ACCENT_DIM =
"#00AA55"- DIM =
"#555555"- DIMMER =
"#333333"- TEXT =
"#DDDDDD"- TEXT_BRIGHT =
"#FFFFFF"- BG =
"#0A0A0A"- SURFACE =
"#1A1A1A"- DANGER =
"#FF4444"
Class Method Summary collapse
-
.active_label ⇒ Object
Active project/category label.
-
.category_active ⇒ Object
Category list item (active).
-
.category_inactive ⇒ Object
Category list item (inactive).
-
.category_time ⇒ Object
Category time.
-
.default_indicator ⇒ Object
Default indicator.
-
.dim ⇒ Object
Dimmed text.
-
.error ⇒ Object
Error / warning.
-
.footer ⇒ Object
Footer / totals.
-
.footer_value ⇒ Object
Footer value.
-
.help ⇒ Object
Help text.
-
.input_label ⇒ Object
Input prompt.
-
.list_normal ⇒ Object
Settings list item (normal).
-
.list_selected ⇒ Object
Settings list item (selected).
-
.panel ⇒ Object
Panel with border.
-
.prompt ⇒ Object
Play/stop button prompt.
-
.section_header ⇒ Object
Settings section header.
-
.tab_active ⇒ Object
Tab active.
-
.tab_inactive ⇒ Object
Tab inactive.
-
.table_cell ⇒ Object
Report table cell.
-
.table_header ⇒ Object
Report table header.
-
.table_total ⇒ Object
Report table total.
-
.timer ⇒ Object
Big timer display.
-
.title ⇒ Object
Title / header.
-
.toast ⇒ Object
Toast notification.
Class Method Details
.active_label ⇒ Object
Active project/category label
34 35 36 37 |
# File 'lib/fuso/styles.rb', line 34 def self.active_label @active_label ||= Lipgloss::Style.new .foreground(TEXT) end |
.category_active ⇒ Object
Category list item (active)
46 47 48 49 50 |
# File 'lib/fuso/styles.rb', line 46 def self.category_active @category_active ||= Lipgloss::Style.new .bold(true) .foreground(ACCENT) end |
.category_inactive ⇒ Object
Category list item (inactive)
53 54 55 56 |
# File 'lib/fuso/styles.rb', line 53 def self.category_inactive @category_inactive ||= Lipgloss::Style.new .foreground(TEXT) end |
.category_time ⇒ Object
Category time
59 60 61 62 |
# File 'lib/fuso/styles.rb', line 59 def self.category_time @category_time ||= Lipgloss::Style.new .foreground(DIM) end |
.default_indicator ⇒ Object
Default indicator
108 109 110 111 |
# File 'lib/fuso/styles.rb', line 108 def self.default_indicator @default_indicator ||= Lipgloss::Style.new .foreground(ACCENT) end |
.dim ⇒ Object
Dimmed text
40 41 42 43 |
# File 'lib/fuso/styles.rb', line 40 def self.dim @dim ||= Lipgloss::Style.new .foreground(DIM) end |
.error ⇒ Object
Error / warning
148 149 150 151 |
# File 'lib/fuso/styles.rb', line 148 def self.error @error ||= Lipgloss::Style.new .foreground(DANGER) end |
.footer ⇒ Object
Footer / totals
74 75 76 77 78 |
# File 'lib/fuso/styles.rb', line 74 def self. @footer ||= Lipgloss::Style.new .foreground(DIM) .margin_top(1) end |
.footer_value ⇒ Object
Footer value
81 82 83 84 85 |
# File 'lib/fuso/styles.rb', line 81 def self. @footer_value ||= Lipgloss::Style.new .foreground(ACCENT) .bold(true) end |
.help ⇒ Object
Help text
142 143 144 145 |
# File 'lib/fuso/styles.rb', line 142 def self.help @help ||= Lipgloss::Style.new .foreground(DIM) end |
.input_label ⇒ Object
Input prompt
154 155 156 157 158 |
# File 'lib/fuso/styles.rb', line 154 def self.input_label @input_label ||= Lipgloss::Style.new .foreground(ACCENT) .bold(true) end |
.list_normal ⇒ Object
Settings list item (normal)
102 103 104 105 |
# File 'lib/fuso/styles.rb', line 102 def self.list_normal @list_normal ||= Lipgloss::Style.new .foreground(TEXT) end |
.list_selected ⇒ Object
Settings list item (selected)
95 96 97 98 99 |
# File 'lib/fuso/styles.rb', line 95 def self.list_selected @list_selected ||= Lipgloss::Style.new .foreground(ACCENT) .bold(true) end |
.panel ⇒ Object
Panel with border
114 115 116 117 118 119 |
# File 'lib/fuso/styles.rb', line 114 def self.panel @panel ||= Lipgloss::Style.new .border(:rounded) .border_foreground(DIMMER) .padding(1, 2) end |
.prompt ⇒ Object
Play/stop button prompt
65 66 67 68 69 70 71 |
# File 'lib/fuso/styles.rb', line 65 def self.prompt @prompt ||= Lipgloss::Style.new .foreground(ACCENT) .bold(true) .margin_top(1) .margin_bottom(1) end |
.section_header ⇒ Object
Settings section header
88 89 90 91 92 |
# File 'lib/fuso/styles.rb', line 88 def self.section_header @section_header ||= Lipgloss::Style.new .bold(true) .foreground(TEXT_BRIGHT) end |
.tab_active ⇒ Object
Tab active
161 162 163 164 165 |
# File 'lib/fuso/styles.rb', line 161 def self.tab_active @tab_active ||= Lipgloss::Style.new .foreground(ACCENT) .bold(true) end |
.tab_inactive ⇒ Object
Tab inactive
168 169 170 171 |
# File 'lib/fuso/styles.rb', line 168 def self.tab_inactive @tab_inactive ||= Lipgloss::Style.new .foreground(DIM) end |
.table_cell ⇒ Object
Report table cell
129 130 131 132 |
# File 'lib/fuso/styles.rb', line 129 def self.table_cell @table_cell ||= Lipgloss::Style.new .foreground(TEXT) end |
.table_header ⇒ Object
Report table header
122 123 124 125 126 |
# File 'lib/fuso/styles.rb', line 122 def self.table_header @table_header ||= Lipgloss::Style.new .bold(true) .foreground(TEXT_BRIGHT) end |
.table_total ⇒ Object
Report table total
135 136 137 138 139 |
# File 'lib/fuso/styles.rb', line 135 def self.table_total @table_total ||= Lipgloss::Style.new .bold(true) .foreground(ACCENT) end |
.timer ⇒ Object
Big timer display
27 28 29 30 31 |
# File 'lib/fuso/styles.rb', line 27 def self.timer @timer ||= Lipgloss::Style.new .bold(true) .foreground(ACCENT) end |
.title ⇒ Object
Title / header
19 20 21 22 23 24 |
# File 'lib/fuso/styles.rb', line 19 def self.title @title ||= Lipgloss::Style.new .bold(true) .foreground(ACCENT) .margin_bottom(1) end |
.toast ⇒ Object
Toast notification
174 175 176 177 178 179 |
# File 'lib/fuso/styles.rb', line 174 def self.toast @toast ||= Lipgloss::Style.new .foreground(ACCENT) .bold(true) .padding(0, 2) end |