diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 20:36:46 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 20:36:46 +0200 |
commit | 175387cdcbddd81bb14f3de9bea3dad8f9443bda (patch) | |
tree | 044d22ac5ff4bdc5e94e4744ee4b73c9e447e8a9 | |
parent | e79b7e7268f8c13423ace5f0ebd8b164b0071d9a (diff) | |
download | kube-175387cdcbddd81bb14f3de9bea3dad8f9443bda.tar.gz kube-175387cdcbddd81bb14f3de9bea3dad8f9443bda.zip |
Show the current date
-rw-r--r-- | views/calendar/qml/View.qml | 22 |
1 files changed, 22 insertions, 0 deletions
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 { | |||
69 | width: parent.width | 69 | width: parent.width |
70 | spacing: Kube.Units.smallSpacing | 70 | spacing: Kube.Units.smallSpacing |
71 | 71 | ||
72 | Row { | ||
73 | spacing: Kube.Units.smallSpacing | ||
74 | Kube.Label { | ||
75 | anchors.verticalCenter: parent.verticalCenter | ||
76 | text: root.currentDate.getDate() | ||
77 | color: Kube.Colors.highlightedTextColor | ||
78 | font.pointSize: Kube.Units.defaultFontSize * 3 | ||
79 | } | ||
80 | Column { | ||
81 | anchors.verticalCenter: parent.verticalCenter | ||
82 | Kube.Label { | ||
83 | text: root.currentDate.toLocaleString(Qt.locale(), "dddd") | ||
84 | color: Kube.Colors.highlightedTextColor | ||
85 | } | ||
86 | Kube.Label { | ||
87 | text: root.currentDate.toLocaleString(Qt.locale(), "MMMM yyyy") | ||
88 | color: Kube.Colors.highlightedTextColor | ||
89 | font.pointSize: Kube.Units.smallFontSize | ||
90 | } | ||
91 | } | ||
92 | |||
93 | } | ||
72 | Kube.Label { | 94 | Kube.Label { |
73 | text: "Week" | 95 | text: "Week" |
74 | color: Kube.Colors.highlightedTextColor | 96 | color: Kube.Colors.highlightedTextColor |