diff options
-rw-r--r-- | views/calendar/qml/WeekView.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml index 2f778d3b..ba9b24d2 100644 --- a/views/calendar/qml/WeekView.qml +++ b/views/calendar/qml/WeekView.qml | |||
@@ -232,12 +232,16 @@ FocusScope { | |||
232 | 232 | ||
233 | color: Kube.Colors.viewBackgroundColor | 233 | color: Kube.Colors.viewBackgroundColor |
234 | 234 | ||
235 | function roundToDay(date) { | ||
236 | return new Date(date.getFullYear(), date.getMonth(), date.getDate()) | ||
237 | } | ||
238 | |||
235 | //Dimm days in the past | 239 | //Dimm days in the past |
236 | Rectangle { | 240 | Rectangle { |
237 | anchors.fill: parent | 241 | anchors.fill: parent |
238 | color: Kube.Colors.buttonColor | 242 | color: Kube.Colors.buttonColor |
239 | opacity: 0.2 | 243 | opacity: 0.2 |
240 | visible: root.currentDate.getDate() > dayDelegate.date.getDate() | 244 | visible: roundToDay(root.currentDate) > roundToDay(dayDelegate.date) |
241 | } | 245 | } |
242 | 246 | ||
243 | //Grid | 247 | //Grid |