mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update docs/examples/styles/color.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
This commit is contained in:
@@ -20,9 +20,9 @@ class ColorApp(App):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def compose(self):
|
def compose(self):
|
||||||
yield Static("Hello, World!", id="static1")
|
yield Static("I'm red!", id="static1")
|
||||||
yield Static("Hello, World!", id="static2")
|
yield Static("I'm rgb(0, 255, 0)!", id="static2")
|
||||||
yield Static("Hello, World!", id="static3")
|
yield Static("I'm hsl(240, 100%, 50%)!", id="static3")
|
||||||
|
|
||||||
|
|
||||||
app = ColorApp()
|
app = ColorApp()
|
||||||
|
|||||||
Reference in New Issue
Block a user