From 629425bec083afb8da4f1594fb7352fbb8d32184 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Wed, 17 Jun 2026 18:59:27 -0400 Subject: [PATCH] feat(tui): add monochrome emphasis attributes for SSH readability Apply Bold/Faint attributes to semantic styles following htop's monochrome design principle. Creates 4-tier visual hierarchy that works even when colors collapse: Bold (danger/warn), Normal (success/ default), Faint (subtle/stale/borders/inactive tabs). Complements the ANSI-16 color fallbacks without affecting TrueColor appearance. --- internal/tui/tui.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 91a2890..59bd582 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -46,14 +46,14 @@ type styles struct { func newStyles(t Theme) *styles { return &styles{ - subtleStyle: lipgloss.NewStyle().Foreground(t.Subtle), + subtleStyle: lipgloss.NewStyle().Foreground(t.Subtle).Faint(true), specialStyle: lipgloss.NewStyle().Foreground(t.Success), - warnStyle: lipgloss.NewStyle().Foreground(t.Warning), - staleStyle: lipgloss.NewStyle().Foreground(t.Stale), - dangerStyle: lipgloss.NewStyle().Foreground(t.Danger), + warnStyle: lipgloss.NewStyle().Foreground(t.Warning).Bold(true), + staleStyle: lipgloss.NewStyle().Foreground(t.Stale).Faint(true), + dangerStyle: lipgloss.NewStyle().Foreground(t.Danger).Bold(true), titleStyle: lipgloss.NewStyle().Foreground(t.Accent).Bold(true), activeTab: lipgloss.NewStyle().Background(t.Surface).Foreground(t.Accent).Bold(true).Padding(0, 1), - inactiveTab: lipgloss.NewStyle().Padding(0, 1).Foreground(t.Muted), + inactiveTab: lipgloss.NewStyle().Padding(0, 1).Foreground(t.Muted).Faint(true), sparkSuccess: t.Success, sparkWarning: t.Warning, @@ -62,7 +62,7 @@ func newStyles(t Theme) *styles { tableHeaderStyle: lipgloss.NewStyle().Foreground(t.Accent).Bold(true).Padding(0, 1), tableCellStyle: lipgloss.NewStyle().Padding(0, 1), tableSelectedStyle: lipgloss.NewStyle().Padding(0, 1).Bold(true).Foreground(t.SelectedFg).Background(t.SelectedBg), - tableBorderStyle: lipgloss.NewStyle().Foreground(t.Border), + tableBorderStyle: lipgloss.NewStyle().Foreground(t.Border).Faint(true), tableZebraStyle: lipgloss.NewStyle().Padding(0, 1).Background(t.ZebraBg), siteGroupStyle: lipgloss.NewStyle().Padding(0, 1).Bold(true).Foreground(t.Accent),