Standardize TUI formatting and styling across all screens
This commit is contained in:
@@ -211,6 +211,54 @@ func ApplyTheme(theme *Theme) {
|
||||
StyleBackground = lipgloss.Color("235")
|
||||
}
|
||||
|
||||
// Modal styles
|
||||
var (
|
||||
// ModalBaseStyle is the base style for all modals
|
||||
ModalBaseStyle = func() lipgloss.Style {
|
||||
return lipgloss.NewStyle().
|
||||
Border(lipgloss.RoundedBorder()).
|
||||
BorderForeground(lipgloss.Color("196")).
|
||||
Padding(1, 2).
|
||||
Background(StyleBackground)
|
||||
}
|
||||
|
||||
// ModalTitleStyle is the style for modal titles
|
||||
ModalTitleStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("226")).
|
||||
Bold(true)
|
||||
|
||||
// ModalMessageStyle is the style for modal messages
|
||||
ModalMessageStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("255")).
|
||||
Width(50)
|
||||
|
||||
// ModalHelpStyle is the style for modal help text
|
||||
ModalHelpStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("241")).
|
||||
MarginTop(1)
|
||||
|
||||
// ModalSelectedStyle is the style for selected modal options
|
||||
ModalSelectedStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("57")).
|
||||
Bold(true).
|
||||
Underline(true)
|
||||
|
||||
// ModalUnselectedStyle is the style for unselected modal options
|
||||
ModalUnselectedStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("241"))
|
||||
)
|
||||
|
||||
// Status icon styles
|
||||
var (
|
||||
// StatusConnectedStyle is the style for connected status icons
|
||||
StatusConnectedStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("46"))
|
||||
|
||||
// StatusDisconnectedStyle is the style for disconnected status icons
|
||||
StatusDisconnectedStyle = lipgloss.NewStyle().
|
||||
Foreground(lipgloss.Color("196"))
|
||||
)
|
||||
|
||||
// GetThemeNames returns a list of available theme names
|
||||
func GetThemeNames() []string {
|
||||
names := make([]string, 0, len(ThemeRegistry))
|
||||
|
||||
Reference in New Issue
Block a user