From c32d9035e035d5539a639b2f60314bd1002c107a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 20 May 2025 22:01:42 +0800 Subject: dashboard: add calendar --- modules/dashboard/dash/DateTime.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/dashboard/dash/DateTime.qml') diff --git a/modules/dashboard/dash/DateTime.qml b/modules/dashboard/dash/DateTime.qml index 7b4e277..5f44227 100644 --- a/modules/dashboard/dash/DateTime.qml +++ b/modules/dashboard/dash/DateTime.qml @@ -6,8 +6,9 @@ import QtQuick Item { id: root + anchors.top: parent.top + anchors.bottom: parent.bottom implicitWidth: DashboardConfig.sizes.dateTimeWidth - implicitHeight: date.y + date.implicitHeight + Appearance.padding.large * 2 StyledText { id: hours @@ -15,7 +16,7 @@ Item { anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top - anchors.topMargin: Appearance.padding.large * 2 + anchors.topMargin: (root.height - (hours.implicitHeight + sep.implicitHeight + sep.anchors.topMargin + mins.implicitHeight + mins.anchors.topMargin + date.implicitHeight + date.anchors.topMargin)) / 2 horizontalAlignment: Text.AlignHCenter text: Time.format("HH") -- cgit v1.2.3-freya