From 0fe5a980330525dfe53bba70afd970e8a17e0db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Wed, 4 Jan 2023 10:34:22 +0000 Subject: [PATCH] Use labels instead of statics. --- docs/examples/styles/outline.css | 2 +- docs/examples/styles/outline.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/styles/outline.css b/docs/examples/styles/outline.css index 487270c6a..b422b5332 100644 --- a/docs/examples/styles/outline.css +++ b/docs/examples/styles/outline.css @@ -2,7 +2,7 @@ Screen { background: white; color: black; } -Static { +Label { margin: 4 8; background: green 20%; outline: wide green; diff --git a/docs/examples/styles/outline.py b/docs/examples/styles/outline.py index e64b11dc2..5f82c85dc 100644 --- a/docs/examples/styles/outline.py +++ b/docs/examples/styles/outline.py @@ -1,5 +1,5 @@ from textual.app import App -from textual.widgets import Static +from textual.widgets import Label TEXT = """I must not fear. @@ -13,7 +13,7 @@ Where the fear has gone there will be nothing. Only I will remain.""" class OutlineApp(App): def compose(self): - yield Static(TEXT) + yield Label(TEXT) app = OutlineApp(css_path="outline.css")