summaryrefslogtreecommitdiffstats
path: root/application/themes/CustomTheme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/themes/CustomTheme.cpp')
-rw-r--r--application/themes/CustomTheme.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/application/themes/CustomTheme.cpp b/application/themes/CustomTheme.cpp
index a3141573..70d55211 100644
--- a/application/themes/CustomTheme.cpp
+++ b/application/themes/CustomTheme.cpp
@@ -128,10 +128,11 @@ CustomTheme::CustomTheme(ITheme* baseTheme, QString folder)
{
m_id = folder;
QString path = FS::PathCombine("themes", m_id);
+ QString pathResources = FS::PathCombine("themes", m_id, "resources");
qDebug() << "Loading theme" << m_id;
- if(!FS::ensureFolderPathExists(path))
+ if(!FS::ensureFolderPathExists(path) || !FS::ensureFolderPathExists(pathResources))
{
qWarning() << "couldn't create folder for theme!";
m_palette = baseTheme->colorScheme();
@@ -191,6 +192,12 @@ CustomTheme::CustomTheme(ITheme* baseTheme, QString folder)
}
}
+QStringList CustomTheme::searchPaths()
+{
+ return { FS::PathCombine("themes", m_id, "resources") };
+}
+
+
QString CustomTheme::id()
{
return m_id;