Fix examples.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-09 16:11:45 +00:00
parent 2827edcd49
commit a1b9d4b2c5
13 changed files with 65 additions and 47 deletions

View File

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