[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:
parent
f32affa563
commit
c0cc1ccd75
4 changed files with 26 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue