Skip to content

Commit

Permalink
fix: help menu styling contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Apr 19, 2024
1 parent d902dd9 commit 399dd4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 9 additions & 1 deletion cmd/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ func NewModel() Model {
Bold(true).
Foreground(lipgloss.Color("229"))

h := help.New()
h.Styles.FullKey = lib.HelpStyle
h.Styles.FullDesc = lib.HelpStyle
h.Styles.FullSeparator = lib.HelpStyle
h.Styles.ShortKey = lib.HelpStyle
h.Styles.ShortDesc = lib.HelpStyle
h.Styles.ShortSeparator = lib.HelpStyle

return Model{
context: "",
feeds: lib.Feeds{},
Expand All @@ -51,7 +59,7 @@ func NewModel() Model {
table: t,
ready: false,
keys: keys,
help: help.New(),
help: h,
post: lib.Post{},
filter: f,
}
Expand Down
10 changes: 7 additions & 3 deletions lib/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ import (
var (
// MainStyle is the main style for the application
MainStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("#cdd6f4")).
Border(lipgloss.RoundedBorder(), true).
BorderForeground(lipgloss.Color("240")).
BorderForeground(lipgloss.Color("#313244")).
Padding(0, 1).
Margin(0)

// ReaderStyle is the style for the reader
ReaderStyle = lipgloss.NewStyle()

// HelpStyle is the style for the help keybinds menu
HelpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#a6adc8"))
)

// TableStyle returns the style for the table
Expand All @@ -24,8 +28,8 @@ func TableStyle() table.Styles {
Bold(true).
Padding(0)
s.Selected = s.Selected.
Foreground(lipgloss.Color("229")).
Background(lipgloss.Color("57")).
Foreground(lipgloss.Color("#1e1e2e")).
Background(lipgloss.Color("#74c7ec")).
Bold(false)
s.Cell.Padding(0)

Expand Down

0 comments on commit 399dd4b

Please sign in to comment.