From 3a8d19bad5e8f48c1596b3fdbd3c8df1fe77efc2 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 10 Apr 2022 11:24:15 +0200 Subject: [PATCH] Added support for nested theme variables. --- es-core/src/ThemeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index 49ed2d1be..d3de108a0 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -981,7 +981,7 @@ void ThemeData::parseVariables(const pugi::xml_node& root) for (pugi::xml_node_iterator it = variables.begin(); it != variables.end(); ++it) { std::string key {it->name()}; - std::string val {it->text().as_string()}; + std::string val {resolvePlaceholders(it->text().as_string())}; if (!val.empty()) mVariables.insert(std::pair(key, val));