From c4d31b31bce8e03d1af75b0258e1f5a507c20d5c Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 31 Dec 2025 13:06:39 -0500 Subject: [PATCH] fix(ui): Use grey background for disabled modules with white text Disabled modules now show grey background instead of dimmed colors. All modules (enabled and disabled) use consistent white text. --- internal/ui/components.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/internal/ui/components.go b/internal/ui/components.go index 8aa1066..1a546cb 100644 --- a/internal/ui/components.go +++ b/internal/ui/components.go @@ -148,16 +148,11 @@ func getContrastColor(bgColor color.Color) color.Color { func (m *ModuleTile) CreateRenderer() fyne.WidgetRenderer { tileColor := m.color - // Use consistent white text for all modules - labelColor := TextColor // White text + labelColor := TextColor // White text for all modules - // Dim disabled tiles + // Grey background for disabled tiles if !m.enabled { - // Reduce opacity by mixing with dark background - if c, ok := m.color.(color.NRGBA); ok { - tileColor = color.NRGBA{R: c.R / 3, G: c.G / 3, B: c.B / 3, A: c.A} - } - labelColor = color.NRGBA{R: 100, G: 100, B: 100, A: 255} + tileColor = color.NRGBA{R: 80, G: 80, B: 80, A: 255} } bg := canvas.NewRectangle(tileColor)