2021-12-02 04:00:33 +00:00
|
|
|
package utils
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/charmbracelet/bubbles/list"
|
|
|
|
"github.com/charmbracelet/lipgloss"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2022-06-05 00:38:02 +00:00
|
|
|
ListStyles = list.DefaultStyles()
|
2021-12-04 18:02:05 +00:00
|
|
|
LabelStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("202"))
|
2022-06-05 00:38:02 +00:00
|
|
|
TitleStyle = list.DefaultStyles().Title.Background(lipgloss.Color("#b34100"))
|
|
|
|
NonListTitleStyle = TitleStyle.Copy().MarginLeft(2).Background(lipgloss.Color("#b34100"))
|
|
|
|
)
|
|
|
|
|
2023-12-28 02:32:56 +00:00
|
|
|
var (
|
|
|
|
CompatWorksStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#00b12d"))
|
|
|
|
CompatDamagedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#e69000"))
|
|
|
|
CompatBrokenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#e60000"))
|
|
|
|
CompatUntestedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#838383"))
|
|
|
|
)
|
|
|
|
|
2022-06-05 00:38:02 +00:00
|
|
|
var (
|
|
|
|
LogoForegroundStyles = []lipgloss.Style{
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("#ff5f00")).Background(lipgloss.Color("#ff5f00")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("#e65400")).Background(lipgloss.Color("#e65400")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("#cc4b00")).Background(lipgloss.Color("#cc4b00")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("#b34100")).Background(lipgloss.Color("#b34100")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("#993800")).Background(lipgloss.Color("#993800")),
|
|
|
|
lipgloss.NewStyle(),
|
|
|
|
}
|
|
|
|
LogoBackgroundStyles = []lipgloss.Style{
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("255")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("252")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("249")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("246")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("243")),
|
|
|
|
lipgloss.NewStyle().Foreground(lipgloss.Color("240")),
|
|
|
|
}
|
2021-12-02 04:00:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
ListStyles.Title = TitleStyle
|
|
|
|
ListStyles.HelpStyle = list.DefaultStyles().HelpStyle.PaddingLeft(2).PaddingBottom(1)
|
|
|
|
ListStyles.PaginationStyle = list.DefaultStyles().PaginationStyle.PaddingLeft(2)
|
|
|
|
}
|