Theme tweaks and fixes, swap primary and secondary of textual-dark

This commit is contained in:
Darren Burns
2024-10-23 16:05:35 +01:00
parent be4a816224
commit 076c1078a9
5 changed files with 16 additions and 13 deletions

View File

@@ -276,7 +276,7 @@ class ChangingThemeApp(App[None]):
yield MarkdownViewer(EXAMPLE_MARKDOWN)
with Horizontal(id="buttons"):
yield Button("Button 1")
yield Button("Button 1", variant="primary")
yield Button.success("Success 2")
yield Button.error("Error 3")
yield Button.warning("Warning 4")
@@ -299,6 +299,7 @@ class ChangingThemeApp(App[None]):
table = DataTable[Any]()
table.add_columns(*HEADERS)
table.add_rows(ROWS)
table.zebra_stripes = True
yield table
yield ListView(
ListItem(Label("One")),