Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.1, 5.15.4
-
-
2248487c6ca9d5459c70a16868d5aeee07d96157 (qt/qtbase/dev) 77659e03393820daace991c28021cfb8b67f871a (qt/qtbase/6.2)
Description
When setting
Material.theme: Material.System
on Windows 10 with Dark Mode enabled, qml does not seems to recognize that the system is in Dark Mode.
To reproduce:
import QtQuick 2.9 import QtQuick.Controls 2.2 import QtQuick.Controls.Material 2.2 ApplicationWindow { id: app visible: true Material.theme: Material.System Component.onCompleted: console.log(app.Material.theme) }
By running the app I get the following result:
$ qmlscene .\theme.qml qml: 0
qml seems to think that I have the OS in light mode.
Attachments
Issue Links
- is duplicated by
-
QTBUG-58055 Material.System (or Universal.System) isn't working
- Closed
- relates to
-
QTBUG-93955 Material.System does not work on Ubuntu (Gnome)
- Closed
-
QTBUG-72028 Add support for Windows dark mode
- Closed
-
QTBUG-94859 Provide a QPA API for detecting which system theme (light/dark/etc.) is in use
- Closed
For Gerrit Dashboard: QTBUG-83908 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
357256,10 | Add QPlatformTheme::Appearance for detecting light/dark modes | dev | qt/qtbase | Status: MERGED | +2 | 0 |
357262,7 | QWindowsTheme: implement appearance() | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
357787,1 | QQuickStyle: use systemTheme() to detect dark mode | dev | qt/qtquickcontrols2 | Status: ABANDONED | 0 | 0 |
367559,3 | QQuickStyle: use systemTheme() to detect dark mode | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
375647,2 | QQuickStyle: use systemTheme() to detect dark mode | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
375648,2 | Add QPlatformTheme::Appearance for detecting light/dark modes | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |