Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ListStyles = list.DefaultStyles() LabelStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("202")) TitleStyle = list.DefaultStyles().Title.Background(lipgloss.Color("#b34100")) NonListTitleStyle = TitleStyle.Copy().MarginLeft(2).Background(lipgloss.Color("#b34100")) )
View Source
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")), } )
Functions ¶
func NewItemDelegate ¶
func NewItemDelegate() list.ItemDelegate
Types ¶
type SimpleItem ¶
type SimpleItem[T tea.Model] struct { Activate func(msg tea.Msg, currentModel T) (tea.Model, tea.Cmd) ItemTitle string }
func (SimpleItem[any]) Description ¶
func (n SimpleItem[any]) Description() string
func (SimpleItem[any]) FilterValue ¶
func (n SimpleItem[any]) FilterValue() string
func (SimpleItem[any]) Title ¶
func (n SimpleItem[any]) Title() string
type SimpleItemExtra ¶ added in v0.0.9
type SimpleItemExtra[T tea.Model, E any] struct { Extra E SimpleItem[T] }
Click to show internal directories.
Click to hide internal directories.