[core/theme] fix mergeing of iconsets

iconsets should only overwrite parameters that are *not* set in the main
theme file.

fixes #666
This commit is contained in:
tobi-wan-kenobi 2020-06-29 20:07:24 +02:00
parent e006344dcc
commit 227a23fdb5

View file

@ -53,7 +53,7 @@ class Theme(object):
self.__data = raw_data if raw_data else self.load(name) self.__data = raw_data if raw_data else self.load(name)
for icons in self.__data.get("icons", []): for icons in self.__data.get("icons", []):
self.__data = util.algorithm.merge(self.load(icons, "icons"), self.__data) self.__data = util.algorithm.merge(self.__data, self.load(icons, "icons"))
if iconset != "auto": if iconset != "auto":
self.__data = util.algorithm.merge(self.load(iconset, "icons"), self.__data) self.__data = util.algorithm.merge(self.load(iconset, "icons"), self.__data)
for colors in self.__data.get("colors", []): for colors in self.__data.get("colors", []):