Bug 507451

Summary: Spanish (español de España) text is white on white background
Product: [Applications] systemsettings Reporter: Tobias Zwick <newton>
Component: kcm_regionandlangAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: hanyoung, nate
Priority: NOR    
Version First Reported In: 6.4.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.5
Sentry Crash Report:
Attachments: white text on white background
white text on white background visible when selecting

Description Tobias Zwick 2025-07-24 16:07:21 UTC
Created attachment 183493 [details]
white text on white background

SUMMARY
In the Region & Language screen -> e.g. "Numbers" sub-screen, the entry for Spanish (español de España) and **only** that entry has white text, only if the window itself is focused. When it is not focused, the text color reverts to the normal color.

Any other sub-screen other than the "Language" will do, too.

The effect is less noticeable when using a dark theme. (But it still is noticeable, because in Breeze Dark, the normal text color is not white but a very light grey)

STEPS TO REPRODUCE
1. In the Region & Language screen, for the "Numbers" row, press [Modify...]
2. search for "Spanish" in the screen that follows
3. observe that that entry has a white text color, with a bright theme the text is not readable

OBSERVED RESULT
Entry for español de España has white text

EXPECTED RESULT
Entry for español de España has the same text color as all other entries

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.6-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Tobias Zwick 2025-07-24 16:07:56 UTC
Created attachment 183494 [details]
white text on white background visible when selecting
Comment 2 hanyoung 2025-08-11 17:20:09 UTC
I can reproduce this problem, though I'm not sure exactly what caused this problem. Seems like the color of `Kirigami.IconTitleSubtitle` is white, but we are not setting the color. Need to do more digging.
Comment 3 hanyoung 2025-08-12 15:59:05 UTC
Git commit 4b13b827531cfcbc84ca0c1acabce1f0fe6a738f by Han Young.
Committed on 12/08/2025 at 15:55.
Pushed by hanyoung into branch 'master'.

kcm_regionandlang: fix locale list item background is not highlighted

In locale list, the selected property is set to iconTitle component,
but not to its parent localeDelegate. Thus, the selected item only has
highlighted text, the background is unchanged.
On light theme, the selected item is white on white. Set the highlighted
property of localeDelegate to make selected item render properly.

M  +31   -25   kcms/region_language/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/4b13b827531cfcbc84ca0c1acabce1f0fe6a738f
Comment 4 hanyoung 2025-08-12 15:59:33 UTC
Git commit 5bc200b3e00d4b59930c073f83de9dff20375314 by Han Young.
Committed on 12/08/2025 at 15:59.
Pushed by hanyoung into branch 'Plasma/6.4'.

kcm_regionandlang: fix locale list item background is not highlighted

In locale list, the selected property is set to iconTitle component,
but not to its parent localeDelegate. Thus, the selected item only has
highlighted text, the background is unchanged.
On light theme, the selected item is white on white. Set the highlighted
property of localeDelegate to make selected item render properly.


(cherry picked from commit 4b13b827531cfcbc84ca0c1acabce1f0fe6a738f)

Co-authored-by: Han Young <hanyoung@protonmail.com>

M  +31   -25   kcms/region_language/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/5bc200b3e00d4b59930c073f83de9dff20375314