fix(ui): Restore lighter blue color for setting buttons

- 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 <noreply@anthropic.com>
This commit is contained in:
Stu Leak 2026-01-01 19:03:02 -05:00
parent 4d7cd1e46d
commit eb5c78036d

View File

@ -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)