Documentation
¶
Index ¶
- Variables
- func ApplyBaseStyles(p Palette)
- func Bar(left, right string, width int) string
- func HelpOverlay(base, helpContent, borderColor string, width int) string
- func Pad(s string, width int) string
- func PanelTitle(title string, active bool) string
- func SearchBar(label, query, suffix string, width int, accentStyle lipgloss.Style) string
- func WrapPanel(content string, active bool, width, height int) string
- type Palette
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PaletteCyber = theme.PaletteCyber PaletteMatrix = theme.PaletteMatrix PaletteDracula = theme.PaletteDracula PaletteNord = theme.PaletteNord )
View Source
var ( StyleTitle = lipgloss.NewStyle(). Foreground(lipgloss.Color(PaletteCyber.AccentPrimary)). Bold(true) StyleTitleDim = lipgloss.NewStyle(). Foreground(lipgloss.Color(PaletteCyber.Muted)) StyleHint = lipgloss.NewStyle(). Foreground(lipgloss.Color(PaletteCyber.Muted)) BorderActive = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(PaletteCyber.BorderActive)) BorderDim = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color(PaletteCyber.BorderDim)) ColorActiveBorder = PaletteCyber.BorderActive ColorBG = PaletteCyber.BG )
Shared TUI style variables — initialised from PaletteCyber, rebuilt by ApplyBaseStyles.
Functions ¶
func ApplyBaseStyles ¶ added in v1.2.0
func ApplyBaseStyles(p Palette)
ApplyBaseStyles rebuilds all shared style vars from the given palette.
func HelpOverlay ¶
HelpOverlay centers helpContent over base as a rounded-border modal.
func PanelTitle ¶ added in v1.2.0
PanelTitle renders a panel header, highlighted when active.
func SearchBar ¶
SearchBar renders a search-mode prompt line padded to width. label is the prompt label (e.g. "SEARCH", "SCANNING"). query is the current search text. suffix is appended after the closing bracket (match counts, hints, etc.). accentStyle is applied to the brackets, cursor, and query text.
Types ¶
Click to show internal directories.
Click to hide internal directories.