Added support for nested theme variables.

This commit is contained in:
Leon Styhre 2022-04-10 11:24:15 +02:00
parent b987dd9cff
commit 3a8d19bad5

View file

@ -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<std::string, std::string>(key, val));