Change Style.theme type to string

This commit is contained in:
Stefano Moretti
2023-06-06 18:40:23 +02:00
parent 287d439eec
commit 768bb75de4
3 changed files with 9 additions and 11 deletions

View File

@ -23,5 +23,7 @@ ApplicationWindow {
Material.primary: Style.primaryColor
Material.accent: Style.accentColor
Material.theme: Style.theme
Material.theme: Style.theme == "System"
? Material.System
: (Style.theme == "Dark" ? Material.Dark : Material.Light)
}

View File

@ -5,7 +5,7 @@ import QtQuick.Controls.Material
QtObject {
property bool isDarkTheme: false
property int theme: Material.System
property string theme: "System"
property bool toolBarPrimary: true
property color primaryColor: Material.color(Material.BlueGrey)