From 425a46e5a184bd41bc54e17675ae07ea52811c8b Mon Sep 17 00:00:00 2001 From: "fred.boniface" Date: Wed, 26 Aug 2026 16:45:57 +0100 Subject: [PATCH] Introduce date display alongside time --- launcher/actions.py | 2 +- launcher/ui.py | 7 ++++-- launcher/window.ui | 61 ++++++++++++++++++++++++++------------------- 3 files changed, 41 insertions(+), 29 deletions(-) diff --git a/launcher/actions.py b/launcher/actions.py index 1f52ef4..d7467cc 100644 --- a/launcher/actions.py +++ b/launcher/actions.py @@ -74,7 +74,7 @@ class ActionDispatcher: "/sound", "/audio-mode:0", "/cert:ignore", - "+disp", + # "+disp", "+dynamic-resolution", "/f" ] diff --git a/launcher/ui.py b/launcher/ui.py index 6d28aad..5ed07ed 100644 --- a/launcher/ui.py +++ b/launcher/ui.py @@ -73,13 +73,16 @@ class UIController: def _setup_clock(self): clock_label = self.builder.get_object("clock_label") + date_label = self.builder.get_object("date_label") def update(): - clock_label.set_text(datetime.now().strftime("%H:%M")) + now = datetime.now() + clock_label.set_text(now.strftime("%H:%M")) + date_label.set_text(now.strftime("%A %d/%m/%Y")) return True update() - GLib.timeout_add_seconds(30, update) + GLib.timeout_add_seconds(10, update) def _initialist_power_options(self): btn_reboot = self.builder.get_object("btn_reboot") diff --git a/launcher/window.ui b/launcher/window.ui index 06a4c2d..37480d2 100644 --- a/launcher/window.ui +++ b/launcher/window.ui @@ -13,32 +13,41 @@ 32 32 - - - - 0 - 3 - - - Launcher Dashboard - - true - 0 - - - - - 00:00 - - 1 - - - - + + + + 0 + 3 + + + Launcher Dashboard + + true + 0 + + + + + Daydayday, 00/00/0000 + + 1 + + + + + 00:00 + + 1 + + + +