Skip to content

Commit 8bb2291

Browse files
committed
fix(scrollbar): fix background alpha optimization
1 parent a35d48a commit 8bb2291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/textual/scrollbar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def render(self) -> RenderableType:
286286
else:
287287
background = styles.scrollbar_background
288288
color = styles.scrollbar_color
289-
if background.a > 0:
289+
if background.a < 1:
290290
base_background, _ = self.parent._opacity_background_colors
291291
background = base_background + background
292292
color = background + color

0 commit comments

Comments
 (0)