clean: remove dark/light toggle

This commit is contained in:
2025-12-16 02:58:57 +01:00
parent 4b457452d4
commit 46fa15fcfe

View File

@@ -28,8 +28,9 @@ if TYPE_CHECKING:
class Auditui(App): class Auditui(App):
"""Main application class for the Audible TUI app.""" """Main application class for the Audible TUI app."""
theme = "textual-dark"
BINDINGS = [ BINDINGS = [
("d", "toggle_dark", "Light/Dark mode"),
("n", "sort", "Sort by name"), ("n", "sort", "Sort by name"),
("p", "sort_by_progress", "Sort by progress"), ("p", "sort_by_progress", "Sort by progress"),
("a", "show_all", "All/unfinished"), ("a", "show_all", "All/unfinished"),
@@ -196,12 +197,6 @@ class Auditui(App):
self.all_items, self.library_client) self.all_items, self.library_client)
self._populate_table(unfinished_items) self._populate_table(unfinished_items)
def action_toggle_dark(self) -> None:
"""Toggle between dark and light theme."""
self.theme = (
"textual-dark" if self.theme == "textual-light" else "textual-light"
)
def action_sort(self) -> None: def action_sort(self) -> None:
"""Sort table by title, toggling direction on each press.""" """Sort table by title, toggling direction on each press."""
table = self.query_one(DataTable) table = self.query_one(DataTable)