Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.5.0
-
None
-
Windows 11
Description
I using dark theme on Windows 11.
And developing Qt Quick application.
I set "darkmode" to 1.
qputenv("QT_QPA_PLATFORM", "windows:darkmode=1");
This setting causes the application title bar to drawn light.
Also, when "darkmode" is 0 or 2, it is drawn dark.
- (4-23-2023 fix) When "darkmode" is unset or 2, it is drawn dark.
The Qt 6.5 release note say:
43ef22045c Windows: Turn on dark mode support by default
Dark mode, both for the window frames and for the palette, is now
supported by default. It can be turned off (partially or entirely) by
setting the QPA parameter "darkmode=0" (no dark mode support) or
"darkmode=1" (darkmode support only for the window frames).
I expected the title bar to be drawn dark when "darkmode" is 1, but it is actually drawn light.
Is this behavior correct?
Or do I have to provide the color palette myself?