-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.go
52 lines (45 loc) · 1.08 KB
/
styles.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package main
import "github.com/charmbracelet/lipgloss"
// answers
func correctAnswerStyle() lipgloss.Style {
return lipgloss.
NewStyle().
Bold(true).
Foreground(lightGreen)
}
// options
func optionsStyle() lipgloss.Style {
return lipgloss.
NewStyle().
Border(lipgloss.NormalBorder()).
PaddingLeft(1).
PaddingRight(1)
}
// Status Bar
func statusBarStyle() lipgloss.Style {
return lipgloss.NewStyle().
Foreground(lipgloss.AdaptiveColor{Light: "#343433", Dark: "#C1C6B2"}).
Background(lipgloss.AdaptiveColor{Light: "#D9DCCF", Dark: "#353533"})
}
func statusStyle(fc string) lipgloss.Style {
return lipgloss.NewStyle().
Inherit(statusBarStyle()).
Foreground(lipgloss.Color(fc)).
Padding(0, 1)
}
func creditStyle() lipgloss.Style {
return lipgloss.NewStyle().
Foreground(lipgloss.Color("#FFFDF5")).
Background(lipgloss.Color("#6124DF")).
MarginRight(1).
MarginLeft(1).
Padding(0, 1)
}
// end messages
func getEndMessage(color string, message string) string {
return lipgloss.
NewStyle().
Foreground(lipgloss.Color(color)).
Bold(true).
Render(message)
}