From 59f9791efe558ea1dc1f08c5fb73fdca7f169060 Mon Sep 17 00:00:00 2001 From: Leon Styhre <leon@leonstyhre.com> Date: Wed, 9 Feb 2022 23:00:15 +0100 Subject: [PATCH] Added new theme system variables for differentiating between collections and non-collection systems. --- es-app/src/SystemData.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index d49160fe5..70a931ccf 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -1231,6 +1231,18 @@ void SystemData::loadTheme() sysData.insert(std::pair<std::string, std::string>("system.name", getName())); sysData.insert(std::pair<std::string, std::string>("system.theme", getThemeFolder())); sysData.insert(std::pair<std::string, std::string>("system.fullName", getFullName())); + if (isCollection()) { + sysData.insert( + std::pair<std::string, std::string>("system.fullName.collections", getFullName())); + sysData.insert( + std::pair<std::string, std::string>("system.theme.collections", getThemeFolder())); + } + else { + sysData.insert(std::pair<std::string, std::string>("system.fullName.noCollections", + getFullName())); + sysData.insert(std::pair<std::string, std::string>("system.theme.noCollections", + getThemeFolder())); + } mTheme->loadFile(sysData, path); }