Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( IconTree string IconProject string IconRepo string IconWorktree string IconEcosystem string IconGitBranch string IconSuccess string IconError string IconWarning string IconInfo string IconRunning string IconPending string IconSelect string IconUnselect string IconArrow string IconBullet string IconNote string IconPlan string IconChat string IconOneshot string IconInteractiveAgent string IconHeadlessAgent string IconShell string IconStatusCompleted string IconStatusRunning string IconStatusFailed string IconStatusBlocked string IconStatusNeedsReview string IconStatusPendingUser string IconStatusHold string IconStatusTodo string IconStatusAbandoned string IconStatusInterrupted string IconArchive string IconArrowLeft string IconArrowLeftBold string IconArrowRightBold string IconFilter string IconSave string IconSelectAll string IconAudited string IconPullRequest string IconPullRequestClosed string IconPullRequestCreate string IconPullRequestDraft string IconPullRequestNewChanges string IconGithubAction string IconGitCompare string IconDiff string IconGit string IconGitStaged string IconGitModified string IconGitUntracked string IconGitDeleted string IconGitRenamed string IconGitPartiallyStaged string IconInbox string IconLightbulb string IconChevron string IconMerge string IconHome string IconRobot string IconTrophy string IconChart string IconSnowflake string IconClock string IconMoney string IconSync string IconHelp string IconBuild string IconStop string IconEarth string IconArrowDown string IconArrowDownBold string IconArrowUp string IconArrowUpBold string IconArrowUpDownBold string IconChecklist string IconArchitecture string IconCalendar string IconChatQuestion string IconClockFast string IconLoading string IconRss string IconSchool string IconIssueClosed string IconIssueOpened string IconNoteCurrent string IconNoteIssues string IconNoteInbox string IconNoteCompleted string IconNoteReview string IconNoteInProgress string IconSparkle string IconCode string IconNotebook string IconDocs string IconFileTree string IconFish string IconPineTreeBox string IconViewDashboard string IconFolderMinus string IconFolderOpen string IconFolderOpenO string IconFolderPlus string IconFolderTree string IconFile string IconFileCancel string IconFileKey string IconFileLock string IconFilePlus string IconFire string IconFolder string IconFolderCheck string IconFolderEye string IconFolderLock string IconFolderMultiple string IconFolderMultiplePlus string IconFolderOff string IconFolderOpenMd string IconFolderPlusMd string IconFolderQuestion string IconFolderRemove string IconFolderSearch string IconFolderStar string IconFolderSync string IconFileDirectoryFill string IconDebug string IconDebugConsole string IconDebugStart string IconPass string IconScriptText string IconTestTube string IconNumeric1CircleOutline string IconNumeric2CircleOutline string IconNumeric3CircleOutline string IconNumeric4CircleOutline string IconNumeric5CircleOutline string IconNumeric6CircleOutline string IconNumeric7CircleOutline string IconNumeric8CircleOutline string IconNumeric9CircleOutline string IconNumeric10CircleOutline string )
Public Icon Variables
var ( Green lipgloss.TerminalColor Yellow lipgloss.TerminalColor Red lipgloss.TerminalColor Orange lipgloss.TerminalColor Cyan lipgloss.TerminalColor Blue lipgloss.TerminalColor Violet lipgloss.TerminalColor Pink lipgloss.TerminalColor LightText lipgloss.TerminalColor MutedText lipgloss.TerminalColor DarkText lipgloss.TerminalColor Border lipgloss.TerminalColor SelectedBackground lipgloss.TerminalColor SubtleBackground lipgloss.TerminalColor VerySubtleBackground lipgloss.TerminalColor )
Exported color shortcuts for legacy usages. These are populated from DefaultTheme.
var DefaultTheme = initDefaultTheme()
DefaultTheme is the default theme instance for the Grove ecosystem.
Functions ¶
func RenderHeader ¶
RenderHeader renders a header with the default Grove styling.
func RenderStatus ¶
RenderStatus renders text with the appropriate status style.
func RenderTitle ¶
RenderTitle renders a title with the default Grove styling.
Types ¶
type Colors ¶
type Colors struct {
Green lipgloss.TerminalColor
Yellow lipgloss.TerminalColor
Red lipgloss.TerminalColor
Orange lipgloss.TerminalColor
Cyan lipgloss.TerminalColor
Blue lipgloss.TerminalColor
Violet lipgloss.TerminalColor
Pink lipgloss.TerminalColor
LightText lipgloss.TerminalColor
MutedText lipgloss.TerminalColor
DarkText lipgloss.TerminalColor
Border lipgloss.TerminalColor
SelectedBackground lipgloss.TerminalColor
SubtleBackground lipgloss.TerminalColor
VerySubtleBackground lipgloss.TerminalColor
}
Colors encapsulates the palette used by a theme. lipgloss.TerminalColor allows a mix of adaptive and static colors.
var DefaultColors Colors
DefaultColors exposes the active color palette selected for the current terminal.
type Theme ¶
type Theme struct {
Colors Colors
// Headers and titles
Header lipgloss.Style
Title lipgloss.Style
// Status indicators (bold)
Success lipgloss.Style
Error lipgloss.Style
Warning lipgloss.Style
Info lipgloss.Style
Magenta lipgloss.Style // Magenta/violet for special statuses like interrupted
// Status indicators (non-bold) - for subtle/inline coloring
SuccessLight lipgloss.Style
ErrorLight lipgloss.Style
WarningLight lipgloss.Style
InfoLight lipgloss.Style
// Text styles - visual hierarchy
Bold lipgloss.Style // Emphasized text
Italic lipgloss.Style // Italic text
Normal lipgloss.Style // Regular terminal default text
Muted lipgloss.Style // De-emphasized text
Path lipgloss.Style // File paths - muted italic
Selected lipgloss.Style
SelectedRow lipgloss.Style
// Selection styles
SelectedUnfocused lipgloss.Style // Selected item in unfocused pane
VisualSelection lipgloss.Style // Visual selection mode highlight
// Table styles
TableHeader lipgloss.Style
TableRow lipgloss.Style
TableBorder lipgloss.Style
// Container styles
Box lipgloss.Style
Code lipgloss.Style
DetailsBox lipgloss.Style // Bordered panel for details views
// Interactive elements
Input lipgloss.Style
Placeholder lipgloss.Style
Cursor lipgloss.Style
// Special styles
Highlight lipgloss.Style
Accent lipgloss.Style
// Workspace styles - used for displaying workspace hierarchies
WorkspaceEcosystem lipgloss.Style // Bold - for ecosystem workspaces
WorkspaceStandard lipgloss.Style // Default - for standard workspaces
WorkspaceWorktree lipgloss.Style // Faint - for worktree branches
// Dynamic color palette for components
AccentColors []lipgloss.TerminalColor
}
Theme holds all the pre-configured styles for the Grove ecosystem.
func NewTheme ¶
func NewTheme() *Theme
NewTheme creates a theme based on the configured theme selection.
func NewThemeWithName ¶
NewThemeWithName constructs a theme from a specific palette name.