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

Class Method Details

.active_labelObject

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_activeObject

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_inactiveObject

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_timeObject

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_indicatorObject

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

.dimObject

Dimmed text



40
41
42
43
# File 'lib/fuso/styles.rb', line 40

def self.dim
  @dim ||= Lipgloss::Style.new
    .foreground(DIM)
end

.errorObject

Error / warning



148
149
150
151
# File 'lib/fuso/styles.rb', line 148

def self.error
  @error ||= Lipgloss::Style.new
    .foreground(DANGER)
end

Footer / totals



74
75
76
77
78
# File 'lib/fuso/styles.rb', line 74

def self.footer
  @footer ||= Lipgloss::Style.new
    .foreground(DIM)
    .margin_top(1)
end

Footer value



81
82
83
84
85
# File 'lib/fuso/styles.rb', line 81

def self.footer_value
  @footer_value ||= Lipgloss::Style.new
    .foreground(ACCENT)
    .bold(true)
end

.helpObject

Help text



142
143
144
145
# File 'lib/fuso/styles.rb', line 142

def self.help
  @help ||= Lipgloss::Style.new
    .foreground(DIM)
end

.input_labelObject

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_normalObject

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_selectedObject

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

.panelObject

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

.promptObject

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_headerObject

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_activeObject

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_inactiveObject

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_cellObject

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_headerObject

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_totalObject

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

.timerObject

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

.titleObject

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

.toastObject

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