From 4d245c955f00ba9075f922d62f4e015ece6338a7 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 1 Sep 2024 11:42:38 +0200 Subject: [PATCH] Added support for including theme files from within the colorScheme and fontSize tag pairs --- es-core/src/ThemeData.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index edf789a58..a082919f9 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -1889,8 +1889,10 @@ void ThemeData::parseColorSchemes(const pugi::xml_node& root) << "\" is not defined in capabilities.xml"; } - if (mSelectedColorScheme == viewKey) + if (mSelectedColorScheme == viewKey) { parseVariables(node); + parseIncludes(node); + } } } } @@ -1926,8 +1928,10 @@ void ThemeData::parseFontSizes(const pugi::xml_node& root) << "\" is not defined in capabilities.xml"; } - if (mSelectedFontSize == viewKey) + if (mSelectedFontSize == viewKey) { parseVariables(node); + parseIncludes(node); + } } } }