Merge pull request #1181 from davep/bug/1175/missing-borders

Don't take transparent to imply not visible
This commit is contained in:
Dave Pearson
2022-11-15 13:32:59 +00:00
committed by GitHub
3 changed files with 259 additions and 262 deletions

View File

@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed DataTable row not updating after add https://github.com/Textualize/textual/issues/1026
- Fixed issues with animation. Now objects of different types may be animated.
- Fixed containers with transparent background not showing borders https://github.com/Textualize/textual/issues/1175
## [0.4.0] - 2022-11-08

View File

@@ -633,11 +633,7 @@ class Compositor:
def is_visible(widget: Widget) -> bool:
"""Return True if the widget is (literally) visible by examining various
properties which affect whether it can be seen or not."""
return (
widget.visible
and not widget.is_transparent
and widget.styles.opacity > 0
)
return widget.visible and widget.styles.opacity > 0
_Region = Region

File diff suppressed because one or more lines are too long