sync pyglet

This commit is contained in:
shenjack 2023-10-24 20:36:20 +08:00
parent 628de743eb
commit 354a3c8a0d
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -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