Also allow custom icon themes

This commit is contained in:
Veronica Berglyd Olsen
2022-12-20 12:50:21 +01:00
parent 6c76e31e0b
commit 1664f92cc8
4 changed files with 15 additions and 10 deletions
+4 -2
View File
@@ -507,8 +507,10 @@ class GuiIcons:
self._themeMap = {}
themePath = self._iconPath / iconTheme
if not themePath.is_dir():
logger.warning("No icons loaded for '%s'", iconTheme)
return False
themePath = self.mainConf.dataPath("icons") / iconTheme
if not themePath.is_dir():
logger.warning("No icons loaded for '%s'", iconTheme)
return False
themeConf = themePath / self._confName
logger.info("Loading icon theme '%s'", iconTheme)