From eb5c78036de7792eddf2db1ce778d844ab31f574 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Thu, 1 Jan 2026 19:03:02 -0500 Subject: [PATCH] fix(ui): Restore lighter blue color for setting buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add ColorNameButton case to MonoTheme.Color() - Settings buttons (codec, presets, format) now use lighter blue (8% lighter than selection color) - Control buttons (View Queue, Save Config) remain grey via widget.LowImportance - Addresses user feedback that buttons were incorrectly changed to grey 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- internal/ui/components.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/internal/ui/components.go b/internal/ui/components.go index 3af8607..8d70cce 100644 --- a/internal/ui/components.go +++ b/internal/ui/components.go @@ -44,10 +44,27 @@ func (m *MonoTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) c case theme.ColorNameHover: // Use the default selection color for hover return theme.DefaultTheme().Color(theme.ColorNameSelection, variant) + case theme.ColorNameButton: + // Use a slightly lighter blue for buttons (92% of full selection color brightness) + selectionColor := theme.DefaultTheme().Color(theme.ColorNameSelection, variant) + r, g, b, a := selectionColor.RGBA() + // Lighten by 8% (multiply by 1.08, capped at 255) + lightness := 1.08 + newR := uint8(min(int(float64(r>>8)*lightness), 255)) + newG := uint8(min(int(float64(g>>8)*lightness), 255)) + newB := uint8(min(int(float64(b>>8)*lightness), 255)) + return color.RGBA{R: newR, G: newG, B: newB, A: uint8(a >> 8)} } return theme.DefaultTheme().Color(name, variant) } +func min(a, b int) int { + if a < b { + return a + } + return b +} + func (m *MonoTheme) Font(style fyne.TextStyle) fyne.Resource { style.Monospace = true return theme.DefaultTheme().Font(style)