Documentation
¶
Index ¶
- func GetThemeNames() []string
- func Initialize()
- func RegisterTheme(name string, constructor func() Theme)
- func SetTheme(name string) error
- type CatppuccinFrappeTheme
- type CatppuccinLatteTheme
- type CatppuccinMacchiatoTheme
- type CatppuccinMochaTheme
- type ColorPalette
- type DraculaTheme
- type NordTheme
- type RosePineDawnTheme
- type RosePineMoonTheme
- type RosePineTheme
- type Theme
- func NewCatppuccinFrappeTheme() Theme
- func NewCatppuccinLatteTheme() Theme
- func NewCatppuccinMacchiatoTheme() Theme
- func NewCatppuccinMochaTheme() Theme
- func NewDraculaTheme() Theme
- func NewNordTheme() Theme
- func NewRosePineDawnTheme() Theme
- func NewRosePineMoonTheme() Theme
- func NewRosePineTheme() Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetThemeNames ¶
func GetThemeNames() []string
GetThemeNames returns a list of available theme names
func Initialize ¶
func Initialize()
Initialize registers theme constructors and sets the default theme
func RegisterTheme ¶
RegisterTheme registers a theme constructor
Types ¶
type CatppuccinFrappeTheme ¶
type CatppuccinFrappeTheme struct {
// contains filtered or unexported fields
}
CatppuccinFrappeTheme implements the Theme interface with Catppuccin Frappé colors
func (*CatppuccinFrappeTheme) Colors ¶
func (t *CatppuccinFrappeTheme) Colors() ColorPalette
Colors returns the color palette
func (*CatppuccinFrappeTheme) Name ¶
func (t *CatppuccinFrappeTheme) Name() string
Name returns the theme name
type CatppuccinLatteTheme ¶
type CatppuccinLatteTheme struct {
// contains filtered or unexported fields
}
CatppuccinLatteTheme implements the Theme interface with Catppuccin Latte colors
func (*CatppuccinLatteTheme) Colors ¶
func (t *CatppuccinLatteTheme) Colors() ColorPalette
Colors returns the color palette
func (*CatppuccinLatteTheme) Name ¶
func (t *CatppuccinLatteTheme) Name() string
Name returns the theme name
type CatppuccinMacchiatoTheme ¶
type CatppuccinMacchiatoTheme struct {
// contains filtered or unexported fields
}
CatppuccinMacchiatoTheme implements the Theme interface with Catppuccin Macchiato colors
func (*CatppuccinMacchiatoTheme) Colors ¶
func (t *CatppuccinMacchiatoTheme) Colors() ColorPalette
Colors returns the color palette
func (*CatppuccinMacchiatoTheme) Name ¶
func (t *CatppuccinMacchiatoTheme) Name() string
Name returns the theme name
type CatppuccinMochaTheme ¶
type CatppuccinMochaTheme struct {
// contains filtered or unexported fields
}
CatppuccinMochaTheme implements the Theme interface with Catppuccin Mocha colors
func (*CatppuccinMochaTheme) Colors ¶
func (t *CatppuccinMochaTheme) Colors() ColorPalette
Colors returns the color palette
func (*CatppuccinMochaTheme) Name ¶
func (t *CatppuccinMochaTheme) Name() string
Name returns the theme name
type ColorPalette ¶
type ColorPalette struct {
// Base colors
Primary lipgloss.Color
Secondary lipgloss.Color
Tertiary lipgloss.Color
// UI element colors
Background lipgloss.Color
Foreground lipgloss.Color
Border lipgloss.Color
// Semantic colors
Success lipgloss.Color
Error lipgloss.Color
Warning lipgloss.Color
Info lipgloss.Color
// File/directory colors
Directory lipgloss.Color
File lipgloss.Color
Selected lipgloss.Color
Deselected lipgloss.Color
// Text colors
Text lipgloss.Color
Muted lipgloss.Color
Highlight lipgloss.Color
HighlightBackground lipgloss.Color
}
ColorPalette defines the colors used throughout the application
type DraculaTheme ¶
type DraculaTheme struct {
// contains filtered or unexported fields
}
DraculaTheme implements the Theme interface with Dracula colors
func (*DraculaTheme) Colors ¶
func (t *DraculaTheme) Colors() ColorPalette
Colors returns the color palette
type NordTheme ¶
type NordTheme struct {
// contains filtered or unexported fields
}
NordTheme implements the Theme interface with Nord colors
func (*NordTheme) Colors ¶
func (t *NordTheme) Colors() ColorPalette
Colors returns the color palette
type RosePineDawnTheme ¶ added in v1.0.7
type RosePineDawnTheme struct {
// contains filtered or unexported fields
}
RosePineDawnTheme implements the Theme interface with Rosé Pine Dawn colors
func (*RosePineDawnTheme) Colors ¶ added in v1.0.7
func (t *RosePineDawnTheme) Colors() ColorPalette
Colors returns the color palette
func (*RosePineDawnTheme) Name ¶ added in v1.0.7
func (t *RosePineDawnTheme) Name() string
Name returns the theme name
type RosePineMoonTheme ¶ added in v1.0.7
type RosePineMoonTheme struct {
// contains filtered or unexported fields
}
RosePineMoonTheme implements the Theme interface with Rosé Pine Moon colors
func (*RosePineMoonTheme) Colors ¶ added in v1.0.7
func (t *RosePineMoonTheme) Colors() ColorPalette
Colors returns the color palette
func (*RosePineMoonTheme) Name ¶ added in v1.0.7
func (t *RosePineMoonTheme) Name() string
Name returns the theme name
type RosePineTheme ¶ added in v1.0.7
type RosePineTheme struct {
// contains filtered or unexported fields
}
RosePineTheme implements the Theme interface with Rosé Pine colors
func (*RosePineTheme) Colors ¶ added in v1.0.7
func (t *RosePineTheme) Colors() ColorPalette
Colors returns the color palette
func (*RosePineTheme) Name ¶ added in v1.0.7
func (t *RosePineTheme) Name() string
Name returns the theme name
type Theme ¶
type Theme interface {
// Colors returns the color palette for the theme
Colors() ColorPalette
// Name returns the theme's name
Name() string
}
Theme interface provides colors for the UI
var ( // CurrentTheme holds the active theme CurrentTheme Theme )
func NewCatppuccinFrappeTheme ¶
func NewCatppuccinFrappeTheme() Theme
NewCatppuccinFrappeTheme creates a new instance of the Catppuccin Frappé theme
func NewCatppuccinLatteTheme ¶
func NewCatppuccinLatteTheme() Theme
NewCatppuccinLatteTheme creates a new instance of the Catppuccin Latte theme
func NewCatppuccinMacchiatoTheme ¶
func NewCatppuccinMacchiatoTheme() Theme
NewCatppuccinMacchiatoTheme creates a new instance of the Catppuccin Macchiato theme
func NewCatppuccinMochaTheme ¶
func NewCatppuccinMochaTheme() Theme
NewCatppuccinMochaTheme creates a new instance of the Catppuccin Mocha theme
func NewDraculaTheme ¶
func NewDraculaTheme() Theme
NewDraculaTheme creates a new instance of the Dracula theme
func NewRosePineDawnTheme ¶ added in v1.0.7
func NewRosePineDawnTheme() Theme
NewRosePineTheme creates a new instance of the Rosé Pine Dawn theme
func NewRosePineMoonTheme ¶ added in v1.0.7
func NewRosePineMoonTheme() Theme
NewRosePineTheme creates a new instance of the Rosé Pine Moon theme
func NewRosePineTheme ¶ added in v1.0.7
func NewRosePineTheme() Theme
NewRosePineTheme creates a new instance of the Rosé Pine theme