mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Switch 5x5's help over to the new Markdown viewer
This commit is contained in:
@@ -79,10 +79,7 @@ WinnerMessage {
|
||||
}
|
||||
|
||||
Help {
|
||||
background: $primary;
|
||||
color: $text;
|
||||
border: round $primary-lighten-3;
|
||||
padding: 2;
|
||||
}
|
||||
|
||||
/* five_by_five.css ends here */
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user