diff --git a/examples/five_by_five.css b/examples/five_by_five.css index a8f1ae60c..329f230f2 100644 --- a/examples/five_by_five.css +++ b/examples/five_by_five.css @@ -79,10 +79,7 @@ WinnerMessage { } Help { - background: $primary; - color: $text; border: round $primary-lighten-3; - padding: 2; } /* five_by_five.css ends here */ diff --git a/examples/five_by_five.md b/examples/five_by_five.md index 6fcc887bb..880391c79 100644 --- a/examples/five_by_five.md +++ b/examples/five_by_five.md @@ -2,8 +2,7 @@ ## Introduction -An annoying puzzle for the terminal, built with -[Textual](https://www.textualize.io/). +An annoying puzzle for the terminal, built with [Textual](https://www.textualize.io/). ## Objective diff --git a/examples/five_by_five.py b/examples/five_by_five.py index f3aada19f..f5e787dc2 100644 --- a/examples/five_by_five.py +++ b/examples/five_by_five.py @@ -5,8 +5,6 @@ from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING, cast -from rich.markdown import Markdown - from textual.app import App, ComposeResult from textual.binding import Binding from textual.containers import Horizontal @@ -14,7 +12,7 @@ from textual.css.query import DOMQuery from textual.reactive import reactive from textual.screen import Screen from textual.widget import Widget -from textual.widgets import Button, Footer, Label +from textual.widgets import Button, Footer, Label, Markdown if TYPE_CHECKING: from typing_extensions import Final @@ -32,7 +30,7 @@ class Help(Screen): Returns: ComposeResult: The result of composing the help screen. """ - yield Label(Markdown(Path(__file__).with_suffix(".md").read_text())) + yield Markdown(Path(__file__).with_suffix(".md").read_text()) class WinnerMessage(Label):