Add default disabled styling for the whole application

This commit is contained in:
Dave Pearson
2023-02-14 11:31:31 +00:00
parent cccf7afccb
commit c65278d038

View File

@@ -241,6 +241,11 @@ class App(Generic[ReturnType], DOMNode):
background: $background;
color: $text;
}
*:disabled {
opacity: 0.6;
text-opacity: 0.8;
}
"""
SCREENS: dict[str, Screen | Callable[[], Screen]] = {}