Documentation
¶
Index ¶
- func Alpha(c color.Color, alpha uint8) color.Color
- func ApplyBoldForegroundGrad(input string, color1, color2 color.Color) string
- func ApplyForegroundGrad(input string, color1, color2 color.Color) string
- func Darken(c color.Color, percent float64) color.Color
- func ForegroundGrad(input string, bold bool, color1, color2 color.Color) []string
- func Lighten(c color.Color, percent float64) color.Color
- func ParseHex(hex string) color.Color
- type Manager
- type Styles
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBoldForegroundGrad ¶
ApplyBoldForegroundGrad renders a given string with a horizontal gradient foreground.
func ApplyForegroundGrad ¶
ApplyForegroundGrad renders a given string with a horizontal gradient foreground.
func ForegroundGrad ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func SetDefaultManager ¶
func SetDefaultManager() *Manager
type Styles ¶
type Styles struct {
Base lipgloss.Style
SelectedBase lipgloss.Style
Title lipgloss.Style
Subtitle lipgloss.Style
Text lipgloss.Style
TextSelected lipgloss.Style
Muted lipgloss.Style
Subtle lipgloss.Style
Success lipgloss.Style
Error lipgloss.Style
Warning lipgloss.Style
Info lipgloss.Style
TextInput textinput.Styles
Help help.Styles
}
type Theme ¶
type Theme struct {
ThemeName string
IsDark bool
Primary color.Color
Secondary color.Color
Tertiary color.Color
Accent color.Color
BgBase color.Color
BgBaseLighter color.Color
BgSubtle color.Color
BgOverlay color.Color
FgBase color.Color
FgMuted color.Color
FgHalfMuted color.Color
FgSubtle color.Color
FgSelected color.Color
Border color.Color
BorderFocus color.Color
Success color.Color
Error color.Color
Warning color.Color
Info color.Color
White color.Color
TextSelection lipgloss.Style
// contains filtered or unexported fields
}
func CurrentTheme ¶
func CurrentTheme() *Theme
func NewCharmtoneTheme ¶
func NewCharmtoneTheme() *Theme
Click to show internal directories.
Click to hide internal directories.