$foreground instead of $text in more places

This commit is contained in:
Darren Burns
2024-10-28 13:01:29 +00:00
parent 9ce4792245
commit 4589f090a9
4 changed files with 18 additions and 14 deletions

View File

@@ -12,6 +12,7 @@ from textual.widgets import (
Collapsible,
DataTable,
Footer,
Header,
Input,
Label,
ListItem,
@@ -247,6 +248,7 @@ class ChangingThemeApp(App[None]):
print(theme_name)
def compose(self) -> ComposeResult:
self.title = "Theme Sandbox"
with Grid(id="palette"):
theme = self.current_theme
for variable, value in vars(theme).items():
@@ -259,6 +261,9 @@ class ChangingThemeApp(App[None]):
}:
yield ColorSample(f"{variable}", classes=variable)
header = Header(show_clock=True, icon="🐟")
header.tall = True
yield header
yield ThemeList(id="theme-list")
with VerticalScroll(id="widget-list") as container:
container.can_focus = False