mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix examples.
This commit is contained in:
@@ -8,7 +8,7 @@ class TintApp(App):
|
||||
color = Color.parse("green")
|
||||
for tint_alpha in range(0, 101, 10):
|
||||
widget = Label(f"tint: green {tint_alpha}%;")
|
||||
widget.styles.tint = color.with_alpha(tint_alpha / 100)
|
||||
widget.styles.tint = color.with_alpha(tint_alpha / 100) # (1)!
|
||||
yield widget
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user