diff --git a/tui/style.go b/tui/style.go index 1441c32f8..8c419a7e4 100644 --- a/tui/style.go +++ b/tui/style.go @@ -4,11 +4,16 @@ import ( "github.com/charmbracelet/lipgloss" ) -var activeBorderColor = lipgloss.Color("243") +var activeBorderColor = lipgloss.Color("62") var inactiveBorderColor = lipgloss.Color("236") var appBoxStyle = lipgloss.NewStyle() +var headerStyle = lipgloss.NewStyle(). + Foreground(lipgloss.Color("62")). + Align(lipgloss.Right). + Bold(true) + var menuStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(inactiveBorderColor). @@ -20,6 +25,10 @@ var menuActiveStyle = menuStyle.Copy(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(activeBorderColor) +var menuCursor = lipgloss.NewStyle(). + Foreground(lipgloss.Color("213")). + SetString(">") + var contentBoxStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(inactiveBorderColor). @@ -30,20 +39,6 @@ var contentBoxActiveStyle = contentBoxStyle.Copy(). BorderStyle(lipgloss.RoundedBorder()). BorderForeground(activeBorderColor) -var headerStyle = lipgloss.NewStyle(). - Foreground(lipgloss.Color("61")). - Align(lipgloss.Right). - Bold(true) - -var footerStyle = lipgloss.NewStyle(). - MarginTop(1) - -var helpKeyStyle = lipgloss.NewStyle(). - Foreground(lipgloss.Color("241")) - -var helpValueStyle = lipgloss.NewStyle(). - Foreground(lipgloss.Color("239")) - var menuItemStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("252")). PaddingLeft(2) @@ -52,9 +47,13 @@ var selectedMenuItemStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("207")). PaddingLeft(1) -var menuCursor = lipgloss.NewStyle(). - Foreground(lipgloss.Color("213")). - SetString(">") +var footerStyle = lipgloss.NewStyle() + +var helpKeyStyle = lipgloss.NewStyle(). + Foreground(lipgloss.Color("241")) + +var helpValueStyle = lipgloss.NewStyle(). + Foreground(lipgloss.Color("239")) var errorStyle = lipgloss.NewStyle(). Padding(1)