88 lines
2.2 KiB
Go
88 lines
2.2 KiB
Go
package tui
|
|
|
|
import "github.com/charmbracelet/lipgloss"
|
|
|
|
var (
|
|
// Colors
|
|
secondaryColor = lipgloss.Color("241") // Gray
|
|
dimColor = lipgloss.Color("245") // Dimmer gray for matched text
|
|
|
|
// Styles
|
|
TitleStyle = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("213")). // Magenta/pink for title
|
|
MarginBottom(1)
|
|
|
|
// Key styles - bold and bright to stand out
|
|
KeyStyle = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("82")) // Bright green
|
|
|
|
KeyStyleSelected = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("154")) // Even brighter green for selected
|
|
|
|
LineNumStyle = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("244")) // Medium gray
|
|
|
|
LineNumStyleSelected = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("250")) // Lighter for selected
|
|
|
|
// Match text - dimmer to not compete with key
|
|
MatchTextStyle = lipgloss.NewStyle().
|
|
Foreground(dimColor)
|
|
|
|
MatchTextStyleSelected = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("252")) // Slightly brighter when selected
|
|
|
|
// Cursor
|
|
CursorStyle = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("212"))
|
|
|
|
HelpStyle = lipgloss.NewStyle().
|
|
Foreground(secondaryColor).
|
|
MarginTop(1)
|
|
|
|
NoResultsStyle = lipgloss.NewStyle().
|
|
Foreground(secondaryColor).
|
|
Italic(true).
|
|
MarginTop(1)
|
|
|
|
// List command styles
|
|
ListTitleStyle = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("213")). // Magenta/pink
|
|
MarginBottom(1)
|
|
|
|
CountStyle = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("244")). // Dimmed gray
|
|
Italic(true)
|
|
|
|
EntryKeyStyle = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("154")) // Bright green
|
|
|
|
EntryKeySelected = lipgloss.NewStyle().
|
|
Bold(true).
|
|
Foreground(lipgloss.Color("86")) // Cyan
|
|
|
|
FilenameStyle = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("241")) // Gray
|
|
|
|
TagsStyle = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("226")) // Yellow
|
|
|
|
SymlinkIcon = "➜ "
|
|
|
|
SymlinkIndicator = "🔗"
|
|
|
|
DescriptionStyle = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("243")). // Dimmed text
|
|
PaddingLeft(2)
|
|
|
|
MetadataStyle = lipgloss.NewStyle().
|
|
Foreground(lipgloss.Color("245")). // Dimmed gray
|
|
PaddingLeft(4)
|
|
)
|