Fix wrong theme handling
This commit is contained in:
parent
89122ff92d
commit
7e5f037332
1 changed files with 3 additions and 2 deletions
|
|
@ -5,8 +5,9 @@ import SettingsCpp
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
|
|
||||||
property var currentTheme: Themes.themes[SettingsCpp.themeMainColor]
|
property var currentTheme: Themes.themes.hasOwnProperty(SettingsCpp.themeMainColor)
|
||||||
|
? Themes.themes[SettingsCpp.themeMainColor]
|
||||||
|
: Themes.themes["orange"]
|
||||||
property color main1_100: currentTheme.main100
|
property color main1_100: currentTheme.main100
|
||||||
property color main1_200: currentTheme.main200
|
property color main1_200: currentTheme.main200
|
||||||
property color main1_300: currentTheme.main300
|
property color main1_300: currentTheme.main300
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue