diff --git a/Linphone/view/Style/DefaultStyle.qml b/Linphone/view/Style/DefaultStyle.qml index 0b3185756..dffa2ab87 100644 --- a/Linphone/view/Style/DefaultStyle.qml +++ b/Linphone/view/Style/DefaultStyle.qml @@ -5,8 +5,9 @@ import SettingsCpp 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_200: currentTheme.main200 property color main1_300: currentTheme.main300