From 85bf62eaa2fd71eb15ef401e537457fb9098a540 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 1 Sep 2025 15:12:09 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/Clock.qml | 30 +++++++++++++++----------- 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell/Clock.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/Clock.qml b/accounts/gkleen@sif/shell/quickshell/Clock.qml index 55fabd1c..d645cfa7 100644 --- a/accounts/gkleen@sif/shell/quickshell/Clock.qml +++ b/accounts/gkleen@sif/shell/quickshell/Clock.qml @@ -7,6 +7,8 @@ import QtQuick.Layouts import Quickshell.Widgets Item { + id: clockItem + width: clock.contentWidth height: parent.height anchors.verticalCenter: parent.verticalCenter @@ -30,22 +32,26 @@ Item { onWheel: event => scrollYear(event) - Text { - id: clock - color: "white" + Item { + anchors.fill: parent - anchors.verticalCenter: parent.verticalCenter + Text { + id: clock + color: "white" - Custom.Chrono { - id: chrono - format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}" - } + anchors.verticalCenter: parent.verticalCenter - text: chrono.date + Custom.Chrono { + id: chrono + format: "W{0:%V-%u} {0:%F} {0:%H:%M:%S%Ez}" + } + + text: chrono.date - font.pointSize: 10 - font.family: "Fira Sans" - font.features: { "tnum": 1 } + font.pointSize: 10 + font.family: "Fira Sans" + font.features: { "tnum": 1 } + } } } -- cgit v1.2.3