Unify styles

This commit is contained in:
Martin Pander
2026-02-17 21:25:14 +01:00
parent 1a9fd9b4b0
commit 3ab26f658d
10 changed files with 132 additions and 324 deletions

View File

@@ -81,10 +81,10 @@ func (d *DetailsViewer) View() string {
// Title bar
titleStyle := lipgloss.NewStyle().
Bold(true).
Foreground(lipgloss.Color("252"))
Foreground(d.common.Styles.Palette.Text.GetForeground())
helpStyle := lipgloss.NewStyle().
Foreground(lipgloss.Color("240"))
Foreground(d.common.Styles.Palette.Muted.GetForeground())
header := lipgloss.JoinHorizontal(
lipgloss.Left,
@@ -96,7 +96,7 @@ func (d *DetailsViewer) View() string {
// Container style
containerStyle := lipgloss.NewStyle().
Border(lipgloss.RoundedBorder()).
BorderForeground(lipgloss.Color("240")).
BorderForeground(d.common.Styles.Palette.Border.GetForeground()).
Padding(0, 1).
Width(d.width).
Height(d.height)
@@ -104,7 +104,7 @@ func (d *DetailsViewer) View() string {
// Optional: highlight border when focused (for future interactivity)
if d.focused {
containerStyle = containerStyle.
BorderForeground(lipgloss.Color("86"))
BorderForeground(d.common.Styles.Palette.Accent.GetForeground())
}
content := lipgloss.JoinVertical(