From 08418849bf30416d5d7083d2c69a36ab261d8cbb Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 13 Apr 2017 08:13:41 -0400 Subject: Commit some small changes I still had on my main workstation: 1) Better support for the "inherited" property in icon themes 2) Some other random WM stuff --- src-qt5/core/libLumina/LuminaXDG.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp') diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp index f34bc0e8..4a095e33 100644 --- a/src-qt5/core/libLumina/LuminaXDG.cpp +++ b/src-qt5/core/libLumina/LuminaXDG.cpp @@ -780,11 +780,15 @@ QIcon LXDG::findIcon(QString iconName, QString fallback){ } //Now load all the dirs into the search paths QStringList theme, oxy, fall; + QStringList themedeps = getIconThemeDepChain(cTheme, paths); for(int i=0; i Theme2 -> Theme3 -> Fallback) + //fall << LOS::AppPrefix()+"share/pixmaps"; //always use this as well as a final fallback QDir::setSearchPaths("icontheme", theme); QDir::setSearchPaths("oxygen", oxy); @@ -880,6 +884,23 @@ QStringList LXDG::getChildIconDirs(QString parent){ return out; } +QStringList LXDG::getIconThemeDepChain(QString theme, QStringList paths){ + QStringList results; + for(int i=0; i