Documentation ¶
Index ¶
- Variables
- func HasDarkBackground() bool
- type Color
- type Style
- func (s Style) ActiveColor() Color
- func (s Style) ActiveContrastColor() Color
- func (s Style) BorderColor() Color
- func (s Style) BorderTitleColor() Color
- func (s Style) ButtonColor(selected bool) Color
- func (s Style) ButtonTextColor(selected bool) Color
- func (s Style) ColorProfile() termenv.Profile
- func (s Style) ErrorColor() Color
- func (s *Style) FormFieldWrapper(field string) string
- func (s Style) HighlightColor() Color
- func (s Style) HighlightContrastColor() Color
- func (s Style) InfoColor() Color
- func (s *Style) InputHelp(text string) string
- func (s *Style) InputHelpStyle() lipgloss.Style
- func (s *Style) InputIndent(text string) string
- func (s *Style) InputIndentSyle() lipgloss.Style
- func (s *Style) MainView(view string, help string, resize bool) string
- func (s *Style) NeedsResize() bool
- func (s Style) PlaceholderColor() Color
- func (s Style) PreviewColorSchemeName() string
- func (s *Style) Profile() termenv.Profile
- func (s *Style) PromptDescription(text string) string
- func (s *Style) PromptDescriptionStyle() lipgloss.Style
- func (s *Style) PromptLabel(text string) string
- func (s *Style) PromptLabelStyle() lipgloss.Style
- func (s *Style) SetSize(width, height int)
- func (s Style) SnippetColor() Color
- func (s Style) SnippetContrastColor() Color
- func (s Style) SubduedColor() Color
- func (s Style) SuccessColor() Color
- func (s Style) TextColor() Color
- func (s *Style) Title(text string) string
- func (s Style) TitleColor() Color
- func (s Style) TitleContrastColor() Color
- func (s *Style) TitleStyle() lipgloss.Style
- func (s Style) VerySubduedColor() Color
- type ThemeValues
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopStyle = &Style{}
Functions ¶
func HasDarkBackground ¶
func HasDarkBackground() bool
Types ¶
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
func (Color) Value ¶
func (c Color) Value() lipgloss.TerminalColor
type Style ¶
type Style struct { Reload func() // contains filtered or unexported fields }
func NewStyle ¶
func NewStyle(t *ThemeValues, showKeyMap bool) Style
func (Style) ActiveColor ¶
func (Style) ActiveContrastColor ¶
func (Style) BorderColor ¶
func (Style) BorderTitleColor ¶
func (Style) ButtonColor ¶
func (Style) ButtonTextColor ¶
func (Style) ColorProfile ¶
func (Style) ErrorColor ¶ added in v1.1.0
func (*Style) FormFieldWrapper ¶
func (Style) HighlightColor ¶
func (Style) HighlightContrastColor ¶
func (*Style) InputHelpStyle ¶ added in v1.6.0
func (*Style) InputIndent ¶ added in v1.6.0
func (*Style) InputIndentSyle ¶ added in v1.6.0
func (*Style) NeedsResize ¶
func (Style) PlaceholderColor ¶
func (Style) PreviewColorSchemeName ¶
func (*Style) PromptDescription ¶ added in v1.6.0
func (*Style) PromptDescriptionStyle ¶ added in v1.6.0
func (*Style) PromptLabel ¶ added in v1.6.0
func (*Style) PromptLabelStyle ¶ added in v1.6.0
func (Style) SnippetColor ¶
func (Style) SnippetContrastColor ¶
func (Style) SubduedColor ¶
func (Style) SuccessColor ¶ added in v1.1.0
func (Style) TitleColor ¶
func (Style) TitleContrastColor ¶
func (*Style) TitleStyle ¶
func (Style) VerySubduedColor ¶
type ThemeValues ¶
type ThemeValues struct { BorderColor string `yaml:"borderColor"` BorderTitleColor string `yaml:"borderTitleColor"` PreviewColorSchemeName string `yaml:"previewColorSchemeName"` TextColor string `yaml:"textColor"` SubduedColor string `yaml:"subduedColor"` SubduedContrastColor string `yaml:"subduedContrastColor"` VerySubduedColor string `yaml:"verySubduedColor"` VerySubduedContrastColor string `yaml:"verySubduedContrastColor"` ActiveColor string `yaml:"activeColor"` ActiveContrastColor string `yaml:"activeContrastColor"` TitleColor string `yaml:"titleColor"` TitleContrastColor string `yaml:"titleContrastColor"` HighlightColor string `yaml:"highlightColor"` HighlightContrastColor string `yaml:"highlightContrastColor"` InfoColor string `yaml:"infoColor"` InfoContrastColor string `yaml:"infoContrastColor"` SnippetColor string `yaml:"snippetColor"` SnippetContrastColor string `yaml:"snippetContrastColor"` SuccessColor string `yaml:"successColor"` ErrorColor string `yaml:"errorColor"` }
Click to show internal directories.
Click to hide internal directories.