Bug 505681

Summary: Bad contrast of menu bar items on hover with some Windows 10 High Contrast color schemes
Product: [Plasma] Breeze Reporter: Ingo Klöcker <kloecker>
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: noahadvs, uhhadd
Priority: NOR    
Version First Reported In: 6.1.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Menu bar items on hover with Windows 10 Contrast Black
Menu bar items on hover with Windows 10 Contrast White

Description Ingo Klöcker 2025-06-17 07:34:31 UTC
Created attachment 182317 [details]
Menu bar items on hover with Windows 10 Contrast Black

On Windows 10, menu bar items look like this on hover:



STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Ingo Klöcker 2025-06-17 07:35:51 UTC
Created attachment 182318 [details]
Menu bar items on hover with Windows 10 Contrast White
Comment 2 Ingo Klöcker 2025-06-17 07:40:24 UTC
Sorry, I've accidentally submitted too early (due to bad UX when adding attachments).

The problem is that on hover Breeze uses the WindowText role for the text and the Highlight role for the background for menu bar items. In case of the high-contrast color schemes Contrast Black and Contrast White of Windows 10 this gives bad contrast because those color schemes use inverted text color for selection.
Comment 3 Bug Janitor Service 2025-06-17 07:50:26 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/547
Comment 4 Ingo Klöcker 2025-11-12 13:10:23 UTC
Git commit 201bafed8d212ec4277a3fa8cd2279469f98f88a by Ingo Klöcker, on behalf of Ingo Klöcker.
Committed on 12/11/2025 at 07:34.
Pushed by kloecker into branch 'master'.

kstyle: Draw hovered menu bar items like selected items

This avoids problems with some high-contrast color schemes where hovered
menu bar items had really bad contrast.

M  +1    -1    kstyle/breezestyle.cpp

https://invent.kde.org/plasma/breeze/-/commit/201bafed8d212ec4277a3fa8cd2279469f98f88a