summaryrefslogtreecommitdiffstats
path: root/views/calendar/qml/DateView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'views/calendar/qml/DateView.qml')
-rw-r--r--views/calendar/qml/DateView.qml36
1 files changed, 19 insertions, 17 deletions
diff --git a/views/calendar/qml/DateView.qml b/views/calendar/qml/DateView.qml
index c42b35fe..cc9eba7c 100644
--- a/views/calendar/qml/DateView.qml
+++ b/views/calendar/qml/DateView.qml
@@ -21,28 +21,30 @@ import QtQuick.Controls 2.2
21 21
22import org.kube.framework 1.0 as Kube 22import org.kube.framework 1.0 as Kube
23 23
24Row { 24Item {
25 id: root 25 id: root
26 property date date: null 26 property date date: null
27 27 height: Kube.Units.gridUnit * 2
28 spacing: Kube.Units.smallSpacing 28 Row {
29 29 anchors.fill: parent
30 Kube.Label { 30 spacing: Kube.Units.smallSpacing
31 anchors.verticalCenter: parent.verticalCenter
32 text: root.date.getDate()
33 color: Kube.Colors.highlightedTextColor
34 font.pointSize: Kube.Units.defaultFontSize * 3
35 }
36 Column {
37 anchors.verticalCenter: parent.verticalCenter
38 Kube.Label { 31 Kube.Label {
39 text: root.date.toLocaleString(Qt.locale(), "dddd") 32 anchors.verticalCenter: parent.verticalCenter
33 text: root.date.getDate()
40 color: Kube.Colors.highlightedTextColor 34 color: Kube.Colors.highlightedTextColor
35 font.pointSize: Kube.Units.defaultFontSize * 3
41 } 36 }
42 Kube.Label { 37 Column {
43 text: root.date.toLocaleString(Qt.locale(), "MMMM yyyy") 38 anchors.verticalCenter: parent.verticalCenter
44 color: Kube.Colors.highlightedTextColor 39 Kube.Label {
45 font.pointSize: Kube.Units.smallFontSize 40 text: root.date.toLocaleString(Qt.locale(), "dddd")
41 color: Kube.Colors.highlightedTextColor
42 }
43 Kube.Label {
44 text: root.date.toLocaleString(Qt.locale(), "MMMM yyyy")
45 color: Kube.Colors.highlightedTextColor
46 font.pointSize: Kube.Units.smallFontSize
47 }
46 } 48 }
47 } 49 }
48} 50}