Skip to content

Commit 9c9829f

Browse files
committed
update: list title style
1 parent f752509 commit 9c9829f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ui/app.go

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type AppModel struct {
1717

1818
func NewAppModel(client *github.Client) AppModel {
1919
list := list.New([]list.Item{}, list.NewDefaultDelegate(), 0, 0)
20+
list.Styles.Title = listTitleStyle
2021
list.Title = "Forky"
2122
list.SetSpinner(spinner.MiniDot)
2223

ui/styles.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ var (
77
Light: "#e94560",
88
Dark: "#f05945",
99
}
10-
listStyle = lipgloss.NewStyle().Margin(2)
10+
11+
listStyle = lipgloss.NewStyle().Margin(2)
12+
listTitleStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#E36CEE"))
13+
1114
detailsStyle = lipgloss.NewStyle().PaddingLeft(2)
1215

1316
errorStyle = lipgloss.NewStyle().Foreground(errorColor)

0 commit comments

Comments
 (0)