-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.go
57 lines (50 loc) · 1.18 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
53
54
55
56
57
package main
import "github.com/charmbracelet/lipgloss"
var (
EntryTextStyle = lipgloss.
NewStyle().
Bold(true).
AlignHorizontal(lipgloss.Center).
Border(lipgloss.RoundedBorder()).
Padding(1, 2).
Foreground(lipgloss.Color("#FF00FF")).
BorderForeground(lipgloss.Color("62"))
EntryBlinkStyle = lipgloss.
NewStyle().
Blink(true).
Foreground(lipgloss.Color("#008080"))
)
var (
HomeScreenName = lipgloss.
NewStyle().
Background(lipgloss.Color("#008080")).
PaddingLeft(1).
PaddingRight(1).
Bold(true)
HomeScreenHref = lipgloss.
NewStyle().
Background(lipgloss.Color("#008080")).
PaddingLeft(1).
PaddingRight(1).
Bold(true).
Underline(true)
)
func GetHomeScreenLeftContainerStyle(m *Model) lipgloss.Style {
return lipgloss.
NewStyle().
Width(m.Window.Width / 4).
Height(m.Window.Height - 5).
AlignVertical(lipgloss.Center).
Border(lipgloss.RoundedBorder()).
PaddingLeft(1)
}
func GetHomeScreenRightContainerStyle(m *Model) lipgloss.Style {
return lipgloss.
NewStyle().
Width(m.Window.Width*3/4 - 4).
Height(m.Window.Height - 5).
Border(lipgloss.RoundedBorder()).
PaddingLeft(2).
PaddingRight(2).
MarginRight(4)
}