From 7e5f037332a7645b17196f30eb57273d142c6c51 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Fri, 3 Oct 2025 12:47:09 +0200 Subject: [PATCH] Fix wrong theme handling --- Linphone/view/Style/DefaultStyle.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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