Fix outline-top and outline-bottom not handling colour alpha

See #2371.
This commit is contained in:
Dave Pearson
2023-05-02 11:03:54 +01:00
parent 8fac2c7d2a
commit 7e570df4f4
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
### Fixed
- Fixed `outline` top and bottom not handling alpha - https://github.com/Textualize/textual/issues/2371
## [0.22.3] - 2023-04-29

View File

@@ -432,7 +432,7 @@ class StylesCache:
outline_top if y == 0 else outline_bottom,
inner,
outer,
from_color(color=outline_color.rich_color),
from_color(color=(base_background + outline_color).rich_color),
)
line = render_row(
box_segments[0 if y == 0 else 2],