Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶ added in v0.7.0
func NewWithConfig(root, themeName, plan string, onboardingSeen bool, tabViewCount map[string]int) Model
NewWithConfig creates a Model with theme, plan, onboarding state, and tab-view counts pre-applied. plan is one of "pro", "max-5x", "max-20x", or "" (no quota UI).
func NewWithTheme ¶ added in v0.5.0
NewWithTheme creates a Model with the given named theme pre-applied. Valid names: "dark", "light", "high-contrast". Falls back to "dark".
type Theme ¶ added in v0.5.0
type Theme struct {
Name string
// Base colors
Primary lipgloss.Color
Accent lipgloss.Color
Muted lipgloss.Color
Good lipgloss.Color
Warn lipgloss.Color
Fg lipgloss.Color
FgDim lipgloss.Color
Selected lipgloss.Color
// Derived styles (precomputed from the colors above, same shape as styles.go)
Title lipgloss.Style
Tab lipgloss.Style
TabActive lipgloss.Style
HeaderBar lipgloss.Style
Section lipgloss.Style
Card lipgloss.Style
CardLabel lipgloss.Style
CardValue lipgloss.Style
Accent_ lipgloss.Style
Good_ lipgloss.Style
Warn_ lipgloss.Style
Error_ lipgloss.Style
}
Theme holds the color palette and all precomputed derived styles for one theme.
Click to show internal directories.
Click to hide internal directories.