summaryrefslogtreecommitdiff
path: root/modules/dashboard/dash/DateTime.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-20 22:01:42 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-20 22:01:42 +0800
commitc32d9035e035d5539a639b2f60314bd1002c107a (patch)
tree7d89ec483c392bca8e54c85a1a6a63ef5c808564 /modules/dashboard/dash/DateTime.qml
parentlauncher: limit width to less of screen (diff)
downloadcaelestia-shell-c32d9035e035d5539a639b2f60314bd1002c107a.tar.gz
caelestia-shell-c32d9035e035d5539a639b2f60314bd1002c107a.tar.bz2
caelestia-shell-c32d9035e035d5539a639b2f60314bd1002c107a.zip
dashboard: add calendar
Diffstat (limited to 'modules/dashboard/dash/DateTime.qml')
-rw-r--r--modules/dashboard/dash/DateTime.qml5
1 files changed, 3 insertions, 2 deletions
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")