mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix text opacity (#2356)
This commit is contained in:
@@ -304,8 +304,6 @@ class StylesCache:
|
|||||||
Returns:
|
Returns:
|
||||||
New list of segments
|
New list of segments
|
||||||
"""
|
"""
|
||||||
if styles.text_opacity != 1.0:
|
|
||||||
segments = TextOpacity.process_segments(segments, styles.text_opacity)
|
|
||||||
if styles.tint.a:
|
if styles.tint.a:
|
||||||
segments = Tint.process_segments(segments, styles.tint)
|
segments = Tint.process_segments(segments, styles.tint)
|
||||||
if styles.opacity != 1.0:
|
if styles.opacity != 1.0:
|
||||||
@@ -405,6 +403,8 @@ class StylesCache:
|
|||||||
line = [make_blank(content_width, inner)]
|
line = [make_blank(content_width, inner)]
|
||||||
if inner:
|
if inner:
|
||||||
line = Segment.apply_style(line, inner)
|
line = Segment.apply_style(line, inner)
|
||||||
|
if styles.text_opacity != 1.0:
|
||||||
|
line = TextOpacity.process_segments(line, styles.text_opacity)
|
||||||
line = line_pad(line, pad_left, pad_right, inner)
|
line = line_pad(line, pad_left, pad_right, inner)
|
||||||
|
|
||||||
if border_left or border_right:
|
if border_left or border_right:
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user