From 3b0008b8075f51f18bb50bd8a01e6b03b7bc540a Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 1 Mar 2018 15:28:14 +0100 Subject: add white border to events so they don't blend when they overlap --- views/calendar/qml/View.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index a545f473..36989032 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml @@ -71,14 +71,16 @@ FocusScope { model: DaylongEvents {} delegate: Item { - height: Kube.Units.gridUnit + height: Kube.Units.gridUnit + 2 // +2 to make good for the white border width: daylong.width Rectangle { width: Kube.Units.gridUnit * 7 * model.duration - height: Kube.Units.gridUnit + height: parent.height x: Kube.Units.gridUnit * 7 * model.starts color: model.color + border.width: 1 + border.color: Kube.Colors.viewBackgroundColor Kube.Label { anchors { @@ -94,7 +96,6 @@ FocusScope { } RowLayout { - anchors.horizontalCenter: parent.horizontalCenter spacing: 0 @@ -127,6 +128,8 @@ FocusScope { x: Kube.Units.gridUnit * model.indention color: model.color + border.width: 1 + border.color: Kube.Colors.viewBackgroundColor Kube.Label { anchors { -- cgit v1.2.3