mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Fix issue with FilledRect when using ui.invert=true
This commit is contained in:
@ -109,7 +109,7 @@ class View(object):
|
||||
self._state.has_element(key)
|
||||
|
||||
def add_element(self, key, elem):
|
||||
if self.invert is 1 and elem.color:
|
||||
if self.invert is 1 and hasattr(elem, 'color'):
|
||||
if elem.color == 0xff:
|
||||
elem.color = 0x00
|
||||
elif elem.color == 0x00:
|
||||
|
Reference in New Issue
Block a user