[core] Remove "intelligent" theme accessors

To simplify code, remove the auto-generated theme accessors for
attributes, and instead use a generic "get" method.
This commit is contained in:
tobi-wan-kenobi 2020-04-07 20:41:09 +02:00
parent f32affa563
commit c0cc1ccd75
4 changed files with 26 additions and 38 deletions

View file

@ -34,7 +34,7 @@ class block(object):
self.__attributes['name'] = module.id
self.__attributes['instance'] = widget.id
self.__attributes['prev-bg'] = theme.get('bg', 'previous')
self.__attributes['prev-bg'] = theme.get('prev-bg')
def set(self, key, value):
self.__attributes[key] = value