diff --git a/tame/app.py b/tame/app.py index 9ddbe31..87aa5cb 100644 --- a/tame/app.py +++ b/tame/app.py @@ -101,11 +101,6 @@ class TAMEApp(App): CSS = """ - Screen { - background: #1e1e1e; - color: #d4d4d4; - } - #main-content { height: 1fr; width: 1fr; @@ -621,6 +616,9 @@ def action_toggle_theme(self) -> None: css_path = self._theme_manager.get_css_path() if css_path: self.stylesheet.source.clear() + # Re-add the app's structural layout CSS first + self.stylesheet.add_source(self.CSS, read_from=("TAMEApp", "")) + # Then add the new theme CSS (Screen colors, widget colors) self.stylesheet.add_source( css_path.read_text(), read_from=(str(css_path), "") )