Documentation
¶
Index ¶
- Constants
- Variables
- func IndexString(index int) string
- func NrInputValidator(s string) error
- func PadFieldName(v string, padAmt *int) string
- type ColorProfile
- type Style
- func (s *Style) GetSecondColor() string
- func (s *Style) HelpStyles() help.Styles
- func (s *Style) NewInputModel(prompt, placeholder string, prevSugg *key.Binding, nextSugg *key.Binding, ...) textinput.Model
- func (s *Style) SetThemeIdx(themeIdx int)
- func (s *Style) TextInputSyle(textInput *textinput.Model, prompt, placeholder string)
- type Theme
Constants ¶
View Source
const ( TabGapDistance = 2 HeaderPadDist = 2 FavChar = " ★" AutoplayChar = " Auto" PlayChar = "\u2877" PauseChar = "\u28FF" LineChar = "\u2847" )
View Source
const IndexStringPadAmt = 3
View Source
const MaxFieldLen = 30
Variables ¶
View Source
var Themes = []Theme{ { Name: "MonoYellow", Dark: ColorProfile{/* contains filtered or unexported fields */}, Light: ColorProfile{/* contains filtered or unexported fields */}, }, { Name: "MonoGreen", Dark: ColorProfile{/* contains filtered or unexported fields */}, Light: ColorProfile{/* contains filtered or unexported fields */}, }, { Name: "MonoBlue", Dark: ColorProfile{/* contains filtered or unexported fields */}, Light: ColorProfile{/* contains filtered or unexported fields */}, }, { Name: "Analog 1", Dark: ColorProfile{/* contains filtered or unexported fields */}, Light: ColorProfile{/* contains filtered or unexported fields */}, }, }
Functions ¶
func IndexString ¶
func NrInputValidator ¶
func PadFieldName ¶
Types ¶
type ColorProfile ¶
type ColorProfile struct {
// contains filtered or unexported fields
}
type Style ¶
type Style struct { PrimaryColorStyle lipgloss.Style SecondaryColorStyle lipgloss.Style // general BaseBold lipgloss.Style DocStyle lipgloss.Style StatusBarStyle lipgloss.Style ViewStyle lipgloss.Style NoItemsStyle lipgloss.Style // station delegate PrefixStyle lipgloss.Style NowPlayingPrefixStyle lipgloss.Style SelNowPlayingStyle lipgloss.Style SelNowPlayingDescStyle lipgloss.Style SelItemStyle lipgloss.Style SelDescStyle lipgloss.Style SelectedBorderStyle lipgloss.Style SelectedBorderStyleInactive lipgloss.Style // header SongTitleStyle lipgloss.Style ItalicStyle lipgloss.Style // tabs InactiveTabBorder lipgloss.Style InactiveTabInner lipgloss.Style InactiveTabInnerHighlight lipgloss.Style ActiveTabBorder lipgloss.Style ActiveTabInner lipgloss.Style ActiveTabInnerHighlight lipgloss.Style TabGap lipgloss.Style // help HelpStyle lipgloss.Style // textInput PromptStyle lipgloss.Style SelPromptStyle lipgloss.Style // station info InfoFieldNameStyle lipgloss.Style // history HistoryDescStyle lipgloss.Style HistorySelItemStyle lipgloss.Style HistorySelDescStyle lipgloss.Style // contains filtered or unexported fields }
func (*Style) GetSecondColor ¶
func (*Style) HelpStyles ¶
func (*Style) NewInputModel ¶
func (*Style) SetThemeIdx ¶
type Theme ¶
type Theme struct { Name string Dark ColorProfile Light ColorProfile // 5 4 2 1 }
Click to show internal directories.
Click to hide internal directories.