Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WindowsQPA: Respect ENV and cmdline darkmode overrides
Currently the commandline and environment parameters (windows:darkmode) for setting the darkmode handling are ignored when the application starts. This patch adds a condition to QWindowsTheme::effectiveColorScheme that checks whether darkmode handling was explicitly overridden and initializes in the constructor the m_colorScheme with the result of passing Qt::ColorScheme::Unknown toeffectiveColorScheme. Fixes: QTBUG-127135 Pick-to: 6.8 Change-Id: I365d26c66fdb3a754832cb7c579aeebecab093fd Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
- Loading branch information