summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/calendar/main.qml2
-rw-r--r--views/calendar/qml/WeekView.qml24
2 files changed, 24 insertions, 2 deletions
diff --git a/views/calendar/main.qml b/views/calendar/main.qml
index e72d4941..07ee6302 100644
--- a/views/calendar/main.qml
+++ b/views/calendar/main.qml
@@ -143,7 +143,7 @@ ApplicationWindow {
143 143
144 View { 144 View {
145 anchors.fill: parent 145 anchors.fill: parent
146 currentDate: "2018-04-09" 146 currentDate: "2018-04-11T13:00:00"
147 autoUpdateDate: false 147 autoUpdateDate: false
148 } 148 }
149} 149}
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml
index c8d0ab7b..868e7ee9 100644
--- a/views/calendar/qml/WeekView.qml
+++ b/views/calendar/qml/WeekView.qml
@@ -192,9 +192,10 @@ FocusScope {
192 length: 7 192 length: 7
193 } 193 }
194 delegate: Rectangle { 194 delegate: Rectangle {
195 id: day 195 id: dayDelegate
196 196
197 property var events: model.events 197 property var events: model.events
198 property var date: model.date
198 199
199 width: root.dayWidth 200 width: root.dayWidth
200 height: root.hourHeight * 24 201 height: root.hourHeight * 24
@@ -285,6 +286,27 @@ FocusScope {
285 } 286 }
286 } 287 }
287 288
289 Rectangle {
290 id: currentTimeLine
291 anchors {
292 right: parent.right
293 left: parent.left
294 }
295 y: root.hourHeight * root.currentDate.getHours() + root.hourHeight / 60 * root.currentDate.getMinutes()
296 height: 2
297 color: Kube.Colors.plasmaBlue
298 visible: root.currentDate.getDate() == dayDelegate.date.getDate()
299 opacity: 0.8
300 }
301
302 //Dimm days in the past
303 Rectangle {
304 anchors.fill: parent
305 color: Kube.Colors.buttonColor
306 opacity: 0.4
307 visible: root.currentDate.getDate() > dayDelegate.date.getDate()
308 }
309
288 DropArea { 310 DropArea {
289 anchors.fill: parent 311 anchors.fill: parent
290 312