Skip to content

Commit

Permalink
Electrify active borders
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Aug 19, 2021
1 parent a750a28 commit 97fab1f
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions tui/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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).
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 97fab1f

Please sign in to comment.