diff --git a/tui/screens/backup.py b/tui/screens/backup.py index 77f90ce..4fdd060 100644 --- a/tui/screens/backup.py +++ b/tui/screens/backup.py @@ -14,7 +14,7 @@ class BackupScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) targets = list_conf_dir("targets.d") remotes = list_conf_dir("remotes.d") with Vertical(id="backup-screen"): diff --git a/tui/screens/logs.py b/tui/screens/logs.py index 45e8d3a..4fe2a4a 100644 --- a/tui/screens/logs.py +++ b/tui/screens/logs.py @@ -12,7 +12,7 @@ class LogsScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) with Vertical(id="logs-screen"): yield Static("Logs", id="screen-title") yield DataTable(id="logs-table") diff --git a/tui/screens/main_menu.py b/tui/screens/main_menu.py index f4549a4..4980b6d 100644 --- a/tui/screens/main_menu.py +++ b/tui/screens/main_menu.py @@ -44,7 +44,7 @@ class MainMenuScreen(Screen): BINDINGS = [("q", "quit_app", "Quit")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) with Horizontal(id="main-layout"): yield Static(LOGO, id="logo", markup=True) menu_items = [] diff --git a/tui/screens/remote_edit.py b/tui/screens/remote_edit.py index b61adbe..98a8ce0 100644 --- a/tui/screens/remote_edit.py +++ b/tui/screens/remote_edit.py @@ -24,7 +24,7 @@ class RemoteEditScreen(Screen): self._is_new = not name def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) title = "Add Remote" if self._is_new else f"Edit Remote: {self._edit_name}" remote = Remote() if not self._is_new: diff --git a/tui/screens/remotes.py b/tui/screens/remotes.py index 4472dcb..04554e9 100644 --- a/tui/screens/remotes.py +++ b/tui/screens/remotes.py @@ -14,7 +14,7 @@ class RemotesScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) with Vertical(id="remotes-screen"): yield Static("Remotes", id="screen-title") yield DataTable(id="remotes-table") diff --git a/tui/screens/restore.py b/tui/screens/restore.py index d470946..7be6ba3 100644 --- a/tui/screens/restore.py +++ b/tui/screens/restore.py @@ -14,7 +14,7 @@ class RestoreScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) targets = list_conf_dir("targets.d") remotes = list_conf_dir("remotes.d") with Vertical(id="restore-screen"): diff --git a/tui/screens/retention.py b/tui/screens/retention.py index f45772e..4ca5242 100644 --- a/tui/screens/retention.py +++ b/tui/screens/retention.py @@ -14,7 +14,7 @@ class RetentionScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) targets = list_conf_dir("targets.d") conf = parse_conf(CONFIG_DIR / "gniza.conf") current_count = conf.get("RETENTION_COUNT", "30") diff --git a/tui/screens/schedule.py b/tui/screens/schedule.py index 63ae5bf..5cb1a89 100644 --- a/tui/screens/schedule.py +++ b/tui/screens/schedule.py @@ -17,7 +17,7 @@ class ScheduleScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) with Vertical(id="schedule-screen"): yield Static("Schedules", id="screen-title") yield DataTable(id="sched-table") diff --git a/tui/screens/schedule_edit.py b/tui/screens/schedule_edit.py index 43517b8..c789a71 100644 --- a/tui/screens/schedule_edit.py +++ b/tui/screens/schedule_edit.py @@ -38,7 +38,7 @@ class ScheduleEditScreen(Screen): self._is_new = not name def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) title = "Add Schedule" if self._is_new else f"Edit Schedule: {self._edit_name}" sched = Schedule() if not self._is_new: diff --git a/tui/screens/settings.py b/tui/screens/settings.py index 3b7af74..6001af9 100644 --- a/tui/screens/settings.py +++ b/tui/screens/settings.py @@ -12,7 +12,7 @@ class SettingsScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) conf = parse_conf(CONFIG_DIR / "gniza.conf") settings = AppSettings.from_conf(conf) with Vertical(id="settings-screen"): diff --git a/tui/screens/snapshots.py b/tui/screens/snapshots.py index 754ba45..457d200 100644 --- a/tui/screens/snapshots.py +++ b/tui/screens/snapshots.py @@ -16,7 +16,7 @@ class SnapshotsScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) targets = list_conf_dir("targets.d") remotes = list_conf_dir("remotes.d") with Vertical(id="snapshots-screen"): diff --git a/tui/screens/target_edit.py b/tui/screens/target_edit.py index dee9068..2ee741c 100644 --- a/tui/screens/target_edit.py +++ b/tui/screens/target_edit.py @@ -21,7 +21,7 @@ class TargetEditScreen(Screen): self._is_new = not name def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) title = "Add Target" if self._is_new else f"Edit Target: {self._edit_name}" target = Target() if not self._is_new: diff --git a/tui/screens/targets.py b/tui/screens/targets.py index 8ccca8a..9c0dd7f 100644 --- a/tui/screens/targets.py +++ b/tui/screens/targets.py @@ -12,7 +12,7 @@ class TargetsScreen(Screen): BINDINGS = [("escape", "go_back", "Back")] def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) with Vertical(id="targets-screen"): yield Static("Targets", id="screen-title") yield DataTable(id="targets-table") diff --git a/tui/screens/wizard.py b/tui/screens/wizard.py index 5ed38b2..e798e2a 100644 --- a/tui/screens/wizard.py +++ b/tui/screens/wizard.py @@ -9,7 +9,7 @@ from tui.config import has_remotes, has_targets class WizardScreen(Screen): def compose(self) -> ComposeResult: - yield Header() + yield Header(show_clock=True) with Center(): with Vertical(id="wizard"): yield Static(