impconverter: add icon data getters
Raw icon data is needed to set it on X11 windows. QubesOS/qubes-issues#967
This commit is contained in:
parent
8d5157a8ab
commit
b853318baf
@ -70,6 +70,18 @@ get_from_stream(), get_from_vm(), get_xdg_icon_from_vm(), get_through_dvm()'''
|
||||
if p.wait():
|
||||
raise Exception('Conversion failed')
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
return self._rgba
|
||||
|
||||
@property
|
||||
def width(self):
|
||||
return self._size[0]
|
||||
|
||||
@property
|
||||
def height(self):
|
||||
return self._size[1]
|
||||
|
||||
def tint(self, colour):
|
||||
'''Return new tinted image'''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user