mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix example app
This commit is contained in:
@@ -222,7 +222,13 @@ class ChangingThemeApp(App[None]):
|
|||||||
with Vertical(id="palette"):
|
with Vertical(id="palette"):
|
||||||
theme = self.get_theme(self.theme)
|
theme = self.get_theme(self.theme)
|
||||||
for variable, value in vars(theme).items():
|
for variable, value in vars(theme).items():
|
||||||
if variable not in {"name", "dark", "luminosity_spread", "text_alpha"}:
|
if variable not in {
|
||||||
|
"name",
|
||||||
|
"dark",
|
||||||
|
"luminosity_spread",
|
||||||
|
"text_alpha",
|
||||||
|
"variables",
|
||||||
|
}:
|
||||||
yield ColorSample(f"{variable}", classes=variable)
|
yield ColorSample(f"{variable}", classes=variable)
|
||||||
|
|
||||||
yield ThemeList(id="theme-list")
|
yield ThemeList(id="theme-list")
|
||||||
|
|||||||
Reference in New Issue
Block a user