This commit is contained in:
pika 2025-06-16 12:13:50 +02:00
parent 9c3a3e06b2
commit 54c526f548

View file

@ -102,11 +102,40 @@ Column {
} }
} }
// Time and Date header // Date display section
Column { Row {
anchors.horizontalCenter: parent.horizontalCenter anchors.left: parent.left
anchors.leftMargin: 12
spacing: Appearance.spacing.normal
// Today's date
StyledText {
text: Qt.formatDateTime(new Date(), "dd MMM yyyy")
font.pointSize: Appearance.font.size.small
font.family: Appearance.font.family.mono
}
// Arrow and selected date (when applicable)
Row {
visible: root.hasSelection
spacing: Appearance.spacing.small spacing: Appearance.spacing.small
StyledText {
text: "→"
font.pointSize: Appearance.font.size.small
color: Colours.palette.m3onSurfaceVariant
}
StyledText {
text: Qt.formatDateTime(root.selectedStartDate, "dd MMM yyyy")
font.pointSize: Appearance.font.size.small
font.family: Appearance.font.family.mono
color: Colours.palette.m3primary
}
}
}
// Time display
StyledText { StyledText {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
text: root.currentTime text: root.currentTime
@ -185,7 +214,6 @@ Column {
} }
} }
} }
}
// Calendar grid // Calendar grid
Rectangle { Rectangle {