diff options
Diffstat (limited to 'views/calendar/qml/WeekView.qml')
-rw-r--r-- | views/calendar/qml/WeekView.qml | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml index f8dca84d..2f778d3b 100644 --- a/views/calendar/qml/WeekView.qml +++ b/views/calendar/qml/WeekView.qml | |||
@@ -106,6 +106,18 @@ FocusScope { | |||
106 | 106 | ||
107 | visible: fullDayListView.count | 107 | visible: fullDayListView.count |
108 | 108 | ||
109 | //Dimm days in the past | ||
110 | Rectangle { | ||
111 | anchors { | ||
112 | left: parent.left | ||
113 | top: parent.top | ||
114 | bottom: parent.bottom | ||
115 | } | ||
116 | width: (root.currentDate.getDate() - root.startDate.getDate()) * root.dayWidth | ||
117 | color: Kube.Colors.buttonColor | ||
118 | opacity: 0.2 | ||
119 | } | ||
120 | |||
109 | Kube.ListView { | 121 | Kube.ListView { |
110 | id: fullDayListView | 122 | id: fullDayListView |
111 | 123 | ||
@@ -145,18 +157,6 @@ FocusScope { | |||
145 | } | 157 | } |
146 | } | 158 | } |
147 | } | 159 | } |
148 | |||
149 | //Dimm days in the past | ||
150 | Rectangle { | ||
151 | anchors { | ||
152 | left: parent.left | ||
153 | top: parent.top | ||
154 | bottom: parent.bottom | ||
155 | } | ||
156 | width: (root.currentDate.getDate() - root.startDate.getDate()) * root.dayWidth | ||
157 | color: Kube.Colors.buttonColor | ||
158 | opacity: 0.2 | ||
159 | } | ||
160 | } | 160 | } |
161 | //END daylong events | 161 | //END daylong events |
162 | 162 | ||
@@ -232,6 +232,14 @@ FocusScope { | |||
232 | 232 | ||
233 | color: Kube.Colors.viewBackgroundColor | 233 | color: Kube.Colors.viewBackgroundColor |
234 | 234 | ||
235 | //Dimm days in the past | ||
236 | Rectangle { | ||
237 | anchors.fill: parent | ||
238 | color: Kube.Colors.buttonColor | ||
239 | opacity: 0.2 | ||
240 | visible: root.currentDate.getDate() > dayDelegate.date.getDate() | ||
241 | } | ||
242 | |||
235 | //Grid | 243 | //Grid |
236 | Column { | 244 | Column { |
237 | anchors.fill: parent | 245 | anchors.fill: parent |
@@ -278,7 +286,6 @@ FocusScope { | |||
278 | x: Kube.Units.gridUnit * model.modelData.indentation | 286 | x: Kube.Units.gridUnit * model.modelData.indentation |
279 | 287 | ||
280 | color: model.modelData.color | 288 | color: model.modelData.color |
281 | opacity: 0.8 | ||
282 | border.width: 1 | 289 | border.width: 1 |
283 | border.color: Kube.Colors.viewBackgroundColor | 290 | border.color: Kube.Colors.viewBackgroundColor |
284 | 291 | ||
@@ -328,13 +335,6 @@ FocusScope { | |||
328 | opacity: 0.8 | 335 | opacity: 0.8 |
329 | } | 336 | } |
330 | 337 | ||
331 | //Dimm days in the past | ||
332 | Rectangle { | ||
333 | anchors.fill: parent | ||
334 | color: Kube.Colors.buttonColor | ||
335 | opacity: 0.2 | ||
336 | visible: root.currentDate.getDate() > dayDelegate.date.getDate() | ||
337 | } | ||
338 | 338 | ||
339 | DropArea { | 339 | DropArea { |
340 | anchors.fill: parent | 340 | anchors.fill: parent |