From 175387cdcbddd81bb14f3de9bea3dad8f9443bda Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 1 Aug 2018 20:36:46 +0200 Subject: Show the current date --- views/calendar/qml/View.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'views/calendar/qml') diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index 2ceb6141..7fd6fa79 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml @@ -69,6 +69,28 @@ RowLayout { width: parent.width spacing: Kube.Units.smallSpacing + Row { + spacing: Kube.Units.smallSpacing + Kube.Label { + anchors.verticalCenter: parent.verticalCenter + text: root.currentDate.getDate() + color: Kube.Colors.highlightedTextColor + font.pointSize: Kube.Units.defaultFontSize * 3 + } + Column { + anchors.verticalCenter: parent.verticalCenter + Kube.Label { + text: root.currentDate.toLocaleString(Qt.locale(), "dddd") + color: Kube.Colors.highlightedTextColor + } + Kube.Label { + text: root.currentDate.toLocaleString(Qt.locale(), "MMMM yyyy") + color: Kube.Colors.highlightedTextColor + font.pointSize: Kube.Units.smallFontSize + } + } + + } Kube.Label { text: "Week" color: Kube.Colors.highlightedTextColor -- cgit v1.2.3