fix(ui): Force white text on all enabled module tiles
- Changed Refresh() to always use TextColor for enabled modules - Previously was calling getContrastColor() which changed text to black on bright backgrounds - All module tiles now consistently use white text as intended
This commit is contained in:
parent
cb754a186e
commit
91071ec619
|
|
@ -266,7 +266,7 @@ func (r *moduleTileRenderer) Refresh() {
|
||||||
// Update tile color and text color based on enabled state
|
// Update tile color and text color based on enabled state
|
||||||
if r.tile.enabled {
|
if r.tile.enabled {
|
||||||
r.bg.FillColor = r.tile.color
|
r.bg.FillColor = r.tile.color
|
||||||
r.label.Color = getContrastColor(r.tile.color)
|
r.label.Color = TextColor // Always white text for enabled modules
|
||||||
if r.lockIcon != nil {
|
if r.lockIcon != nil {
|
||||||
r.lockIcon.Hide()
|
r.lockIcon.Hide()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user