-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Description
Enhancement request:
What should be added/changed?
TL;DR: Make View handle background colors with validation like Window
In Window, we have a getter and setter for Window.background_color:
Lines 396 to 398 in 33c368d
| @background_color.setter | |
| def background_color(self, value: RGBOrA255) -> None: | |
| self._background_color = Color.from_iterable(value) |
It seems worthwhile to:
- Add the same behavior to
View - Add tests to ensure homogeneous behavior
What would it help with?
- API consistency
- If @einarf approves making the default color for both
BLACKinstead ofTRANSPARENT_BLACK:- Screenshots will no longer be surprise-transparent
- Making screenshots for examples will be nicer