From eabb425fdd50ebbb968a521248eeae6fb8adca47 Mon Sep 17 00:00:00 2001 From: Fabrice CARUSO Date: Tue, 10 Mar 2026 20:43:21 +0100 Subject: [PATCH] [Theming] Support new declaration for variables ( ) Older declarations are unchanged. --- es-core/src/ThemeData.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index 5cebdd7f0..8f86fbd41 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -765,7 +765,7 @@ void ThemeData::loadFile(const std::string& system, const std::mapgetSettingsNames()) { if (name.find(".") != std::string::npos) @@ -1188,6 +1188,12 @@ void ThemeData::parseVariable(const pugi::xml_node& node) std::string val = node.text().as_string(); + if (key == "variable" && node.attribute("name") && node.attribute("value")) + { + key = node.attribute("name").as_string(); + val = resolvePlaceholders(node.attribute("value").as_string()); + } + if (val == "true" || val == "false") { mVariables[key] = val;