Add text selection and copy capability to terminal UI
This commit is contained in:
@@ -30,14 +30,20 @@ var (
|
||||
once sync.Once
|
||||
|
||||
// Global styles that can be used throughout the application
|
||||
StylePrimary lipgloss.Style
|
||||
StyleSuccess lipgloss.Style
|
||||
StyleWarning lipgloss.Style
|
||||
StyleError lipgloss.Style
|
||||
StyleMuted lipgloss.Style
|
||||
StyleTitle lipgloss.Style
|
||||
StyleSubtitle lipgloss.Style
|
||||
StyleHelpKey lipgloss.Style
|
||||
StylePrimary lipgloss.Style
|
||||
StyleSuccess lipgloss.Style
|
||||
StyleWarning lipgloss.Style
|
||||
StyleError lipgloss.Style
|
||||
StyleMuted lipgloss.Style
|
||||
StyleTitle lipgloss.Style
|
||||
StyleSubtitle lipgloss.Style
|
||||
StyleHelpKey lipgloss.Style
|
||||
StyleValue lipgloss.Style
|
||||
StyleDimmed lipgloss.Style
|
||||
StyleTableHeader lipgloss.Style
|
||||
StyleTableSelected lipgloss.Style
|
||||
StyleBorder lipgloss.Color
|
||||
StyleBackground lipgloss.Color
|
||||
)
|
||||
|
||||
// DefaultTheme is the standard blue-based theme
|
||||
@@ -176,6 +182,33 @@ func ApplyTheme(theme *Theme) {
|
||||
StyleHelpKey = lipgloss.NewStyle().
|
||||
Foreground(theme.Scheme.Primary).
|
||||
Bold(true)
|
||||
|
||||
// Value style for content values
|
||||
StyleValue = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("255"))
|
||||
|
||||
// Dimmed style for overlay content
|
||||
StyleDimmed = lipgloss.NewStyle().
|
||||
Foreground(theme.Scheme.Muted)
|
||||
|
||||
// Table header style
|
||||
StyleTableHeader = lipgloss.NewStyle().
|
||||
BorderStyle(lipgloss.NormalBorder()).
|
||||
BorderForeground(lipgloss.Color("240")).
|
||||
BorderBottom(true).
|
||||
Bold(true)
|
||||
|
||||
// Table selected style
|
||||
StyleTableSelected = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("229")).
|
||||
Background(lipgloss.Color("57")).
|
||||
Bold(false)
|
||||
|
||||
// Border color
|
||||
StyleBorder = lipgloss.Color("240")
|
||||
|
||||
// Background color for modals
|
||||
StyleBackground = lipgloss.Color("235")
|
||||
}
|
||||
|
||||
// GetThemeNames returns a list of available theme names
|
||||
|
||||
Reference in New Issue
Block a user