mirror of
https://github.com/stemoretti/BaseUI.git
synced 2025-11-14 05:32:46 -05:00
Change Style.theme type to string
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user