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;