Skip to content

Commit

Permalink
fix: new bubbletea rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed May 29, 2024
1 parent 31e2ee7 commit c51d211
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ var (

// TableStyle returns the style for the table
func TableStyle() table.Styles {
s := table.DefaultStyles()
s.Header = s.Header.Bold(true)
s.Selected = s.Selected.
Foreground(lipgloss.Color(UserConfig.Colors.Inverttext)).
Background(lipgloss.Color(UserConfig.Colors.Accent)).
Bold(false)

return s
return table.Styles{
Header: lipgloss.NewStyle().Bold(true),
Cell: lipgloss.NewStyle(),
Selected: lipgloss.NewStyle().
Foreground(lipgloss.Color(UserConfig.Colors.Inverttext)).
Background(lipgloss.Color(UserConfig.Colors.Accent)),
}
}

0 comments on commit c51d211

Please sign in to comment.