sync pyglet
This commit is contained in:
parent
628de743eb
commit
354a3c8a0d
@ -271,6 +271,8 @@ class DocumentLabel(layout.TextLayout):
|
|||||||
|
|
||||||
@color.setter
|
@color.setter
|
||||||
def color(self, color):
|
def color(self, color):
|
||||||
|
r, g, b, *a = color
|
||||||
|
color = r, g, b, a[0] if a else 255
|
||||||
self.document.set_style(0, len(self.document.text), {'color': color})
|
self.document.set_style(0, len(self.document.text), {'color': color})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user