Added support for placing aspectRatio tags inside variant tags and variables and colorScheme tags inside aspectRatio tags.

This commit is contained in:
Leon Styhre 2022-11-01 17:13:37 +01:00
parent 98d9ce42d2
commit 9584c1bcc7

View file

@ -1128,8 +1128,10 @@ void ThemeData::parseVariants(const pugi::xml_node& root)
if (mSelectedVariant == viewKey || viewKey == "all") { if (mSelectedVariant == viewKey || viewKey == "all") {
parseVariables(node); parseVariables(node);
parseColorSchemes(node);
parseIncludes(node); parseIncludes(node);
parseViews(node); parseViews(node);
parseAspectRatios(node);
} }
} }
} }
@ -1209,6 +1211,8 @@ void ThemeData::parseAspectRatios(const pugi::xml_node& root)
} }
if (mSelectedAspectRatio == viewKey) { if (mSelectedAspectRatio == viewKey) {
parseVariables(node);
parseColorSchemes(node);
parseIncludes(node); parseIncludes(node);
parseViews(node); parseViews(node);
} }