fix text opacity (#2356)

This commit is contained in:
Will McGugan
2023-04-22 08:50:14 +01:00
committed by GitHub
parent 9e19706b53
commit a2633ca31e
2 changed files with 171 additions and 171 deletions

View File

@@ -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