Skip to content

Commit

Permalink
fix(gui): event propagation and further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eruvanos committed Jul 27, 2024
1 parent a6c457b commit 6b46f98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arcade/gui/widgets/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def __init__(
multiline=False,
caret_color: RGBOrA255 = arcade.color.WHITE,
border_color: RGBOrA255 | None = arcade.color.WHITE,
border_width: float = 2,
border_width: int = 2,
size_hint=None,
size_hint_min=None,
size_hint_max=None,
Expand All @@ -427,7 +427,9 @@ def __init__(
size_hint_max=size_hint_max,
**kwargs,
)
self.with_border(color=border_color, width=border_width)
self.with_border(
color=Color.from_iterable(border_color) if border_color else None, width=border_width
)

self._active = False
self._text_color = Color.from_iterable(text_color)
Expand Down

0 comments on commit 6b46f98

Please sign in to comment.