mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
@@ -11,7 +11,7 @@ class Thing(Static):
|
||||
|
||||
|
||||
class AddRemoveApp(App):
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
#buttons {
|
||||
dock: top;
|
||||
height: auto;
|
||||
|
||||
@@ -3,7 +3,7 @@ from textual.widgets import Static
|
||||
|
||||
|
||||
class CenterApp(App):
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
|
||||
CenterApp Screen {
|
||||
layout: center;
|
||||
|
||||
@@ -4,7 +4,7 @@ from textual.widgets import Static
|
||||
|
||||
|
||||
class CenterApp(App):
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
|
||||
#sidebar {
|
||||
dock: left;
|
||||
|
||||
@@ -10,7 +10,7 @@ from textual.widget import Widget
|
||||
|
||||
|
||||
class Box(Widget, can_focus=True):
|
||||
CSS = "#box {background: blue;}"
|
||||
DEFAULT_CSS = "#box {background: blue;}"
|
||||
|
||||
def render(self) -> RenderableType:
|
||||
return Panel("Box")
|
||||
|
||||
@@ -21,7 +21,7 @@ class NewScreen(Screen):
|
||||
|
||||
|
||||
class ScreenApp(App):
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
ScreenApp Screen {
|
||||
background: #111144;
|
||||
color: white;
|
||||
|
||||
@@ -5,7 +5,7 @@ from textual.widgets import DirectoryTree
|
||||
|
||||
|
||||
class TreeApp(App):
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
Screen {
|
||||
overflow: auto;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user