Skip to content

Commit

Permalink
feat: Update 'help' frame title style
Browse files Browse the repository at this point in the history
  • Loading branch information
bow committed Nov 23, 2023
1 parent 98c3829 commit 4de3f80
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Show(db internal.FeedStore) error {
versionForeground := tcell.ColorGray
lastPullForeground := tcell.ColorGray
statsForeground := tcell.ColorDarkGoldenrod
helpTitleForeground := tcell.ColorYellow
helpTitleForeground := tcell.ColorAqua
helpBorderLineForeground := tcell.ColorGray

tview.Borders.HorizontalFocus = tview.Borders.Horizontal
Expand Down Expand Up @@ -99,9 +99,13 @@ func Show(db internal.FeedStore) error {
helpPage := tview.NewFrame(nil).
SetBorder(true).
SetBorderColor(helpBorderLineForeground).
SetTitle(" Help ").
SetTitle(" [::b]Help[::-] ").
SetTitleColor(helpTitleForeground)

helpPage.
SetFocusFunc(func() { helpPage.SetTitle(" [::b]Help[::-] ") }).
SetBlurFunc(func() { helpPage.SetTitle(" Help ") })

root.
AddAndSwitchToPage("main", mainPage, true).
AddPage(
Expand Down

0 comments on commit 4de3f80

Please sign in to comment.