ficsit-cli-flake/tea/utils/styles.go

21 lines
653 B
Go
Raw Normal View History

2021-12-02 04:00:33 +00:00
package utils
import (
"github.com/charmbracelet/bubbles/list"
"github.com/charmbracelet/lipgloss"
)
var (
2021-12-04 18:02:05 +00:00
ListStyles list.Styles
LabelStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("202"))
TitleStyle = list.DefaultStyles().Title.Background(lipgloss.Color("22"))
NonListTitleStyle = TitleStyle.Copy().MarginLeft(2).Background(lipgloss.Color("22"))
2021-12-02 04:00:33 +00:00
)
func init() {
ListStyles = list.DefaultStyles()
ListStyles.Title = TitleStyle
ListStyles.HelpStyle = list.DefaultStyles().HelpStyle.PaddingLeft(2).PaddingBottom(1)
ListStyles.PaginationStyle = list.DefaultStyles().PaginationStyle.PaddingLeft(2)
}