qt5base-lts/src
Volker Hilsheimer 43ef22045c Windows: Turn on dark mode support by default
The implementation was already there, and handles theme changes at
runtime as well. However, it was disabled unless the QPA parameter
"darkmode" was set to either 1 (supporting only the frame) or 2 (the
Windows theme also supports dark mode when reading the palette).

With both Windows 10 and Windows 11 now having dark mode as a fully
supported feature that is easily accessible to end-users, we should
respect that setting by default.

So change the default: support both dark window frames and palette, and
let users turn this partially off by setting darkmode=1 or darkmode=0.

This does not mean accent colors etc are fully supported by the Windows
styles.

[ChangeLog][QtGui][Windows] 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).

Pick-to: 6.4
Fixes: QTBUG-72028
Change-Id: Ia55af101896c106cde21340b306aa81390e608a2
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2022-07-12 23:57:20 +02:00
..
3rdparty Update Gradle to 7.4.2 and Android Gradle Plug-in (AGP) to 7.2.1 2022-07-06 11:43:56 +03:00
android Update Gradle to 7.4.2 and Android Gradle Plug-in (AGP) to 7.2.1 2022-07-06 11:43:56 +03:00
concurrent Add the qt_class pragma to file listed in sync.profile classnames map 2022-06-22 03:03:31 +02:00
corelib Use QT_CONFIG feature checks for sharedmemory and systemsemaphores 2022-07-12 22:47:16 +02:00
dbus Fix QDBusInterface crashing with empty path on construction 2022-06-27 14:02:47 +02:00
entrypoint Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
gui QKeySequence: Update the doc to KeyboardModifiers 2022-07-12 22:14:41 +01:00
network QHttpHeaderParser: fix int/qsizetype nags 2022-06-27 14:02:47 +02:00
opengl Gui: mark types Q_PRIMITIVE_TYPE when they're held in QDataBuffer 2022-07-08 20:14:52 +00:00
openglwidgets Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
platformsupport Fix crash in QKmsDevice::createScreenForConnector 2022-07-07 15:47:14 +03:00
plugins Windows: Turn on dark mode support by default 2022-07-12 23:57:20 +02:00
printsupport Doc: Adjust widget printing example to not use removed functions 2022-07-12 23:14:42 +02:00
sql Add the qt_class pragma to file listed in sync.profile classnames map 2022-06-22 03:03:31 +02:00
testlib Replace 0 with \nullptr in QTest::currentDataTag()'s doc 2022-07-11 21:41:51 +02:00
tools qdbusxml2cpp: Finish migration to qsizetype 2022-07-12 20:03:54 +00:00
widgets Improve widget painting under dpr>1 by enabling smooth pixmap scaling 2022-07-12 13:24:56 +02:00
xml QDomDocument: add a missing full-stop to a warning message 2022-07-12 13:24:57 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00