Documentation
¶
Overview ¶
Package ui provides shared UI styling and components for the TUI application.
Index ¶
- Variables
- func ApplyFuzzyFilter(query string, items []string) []string
- func ApplyTheme()
- func FormatEmptyValue(val string) string
- func InitTheme(t theme.Theme)
- func PadRight(s string, length int) string
- func PaneStyle(width, height int, focused bool) lipgloss.Style
- func RemoveListBackgrounds(l list.Model) list.Model
- func RenderEmptyValue(val string) string
- func RenderScrollIndicator(hasMore, hasLess bool) string
- func TruncateWithEllipsis(s string, maxLen int) string
Constants ¶
This section is empty.
Variables ¶
var ( PrimaryColor color.Color SecondaryColor color.Color AccentColor color.Color MutedColor color.Color SoftMutedColor color.Color TextColor color.Color ModalBgColor color.Color ErrorColor color.Color LinkColor color.Color )
Colors used throughout the UI.
var ( BorderStyle lipgloss.Style CLIPreviewStyle lipgloss.Style ErrorStyle lipgloss.Style ErrorTitleStyle lipgloss.Style FocusedBorderStyle lipgloss.Style HelpStyle lipgloss.Style LinkStyle lipgloss.Style NormalStyle lipgloss.Style SelectedStyle lipgloss.Style SubtitleStyle lipgloss.Style TableDefaultStyle lipgloss.Style TableDimmedStyle lipgloss.Style TableHeaderStyle lipgloss.Style TableItalicStyle lipgloss.Style TableRowStyle lipgloss.Style TableSelectedStyle lipgloss.Style TitleStyle lipgloss.Style )
Styles for the application (initialized in ApplyTheme).
Functions ¶
func ApplyFuzzyFilter ¶
ApplyFuzzyFilter returns items filtered by query using fuzzy matching. Returns original items if query is empty.
func FormatEmptyValue ¶
FormatEmptyValue returns the display string for a value, showing ("") for empty strings.
func RemoveListBackgrounds ¶
RemoveListBackgrounds removes all backgrounds from a list.Model for modal overlay.
func RenderEmptyValue ¶
RenderEmptyValue returns a styled string for a value, using italic style for empty strings.
func RenderScrollIndicator ¶
RenderScrollIndicator renders scroll arrows (^ and v) for lists.
func TruncateWithEllipsis ¶
TruncateWithEllipsis truncates a string to maxLen, adding "..." if truncated.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package modal provides modal dialogs for user interactions in the TUI application.
|
Package modal provides modal dialogs for user interactions in the TUI application. |
|
Package panes provides the main UI panes for workflow, history, and configuration views.
|
Package panes provides the main UI panes for workflow, history, and configuration views. |
|
Package theme provides color theme detection and management for the TUI.
|
Package theme provides color theme detection and management for the TUI. |