- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    5.14.1, 5.15.4
- 
        
- 
        2248487c6ca9d5459c70a16868d5aeee07d96157 (qt/qtbase/dev) 77659e03393820daace991c28021cfb8b67f871a (qt/qtbase/6.2)
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.
- 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 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
 
-