Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.6.0, 6.7.0, 6.8.0
-
None
-
Windows 11 23H2
Description
When creating a Windows application using the Fusion theme, the Windows accent color is not used for highlighted text and menu items when Windows is set to light mode. On changing to dark mode the accent color shows up as expected.
The reason for the difference is that in qwindowstheme.cpp, the dark base system palette derives the highlight color from the C++/WinRT accent color (which uses the system accent color), while the light palette derives it from the winuser.h GetSysColor function (which on my system always returns blue). I checked the git logs and PR comments and couldn't find a reason for the difference.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-130458 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
600464,1 | QWindowsTheme: Set highlight color to accent color in light mode | dev | qt/qtbase | Status: NEW | +1 | 0 |