From c9b2bf36008b2918cb61c7a08c29c2fbe38a474c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 1 Aug 2018 17:34:21 +0200 Subject: Avoid direct color hardcoding --- views/calendar/qml/WeekView.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml index ca35d788..c8d0ab7b 100644 --- a/views/calendar/qml/WeekView.qml +++ b/views/calendar/qml/WeekView.qml @@ -70,7 +70,7 @@ FocusScope { height: Kube.Units.gridUnit + Kube.Units.smallSpacing * 3 border.width: 1 - border.color: "lightgrey" + border.color: Kube.Colors.lightgrey color: Kube.Colors.viewBackgroundColor Kube.Label { @@ -200,7 +200,7 @@ FocusScope { height: root.hourHeight * 24 border.width: 1 - border.color: "lightgrey" + border.color: Kube.Colors.lightgrey color: Kube.Colors.viewBackgroundColor Column { @@ -212,7 +212,7 @@ FocusScope { width: parent.width color: "transparent" border.width:1 - border.color: "lightgrey" + border.color: Kube.Colors.lightgrey } } } @@ -241,12 +241,14 @@ FocusScope { right: parent.right rightMargin: Kube.Units.smallSpacing } + radius: 2 width: root.dayWidth - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.modelData.indention height: Math.max(root.hourHeight * 0.5, root.hourHeight * model.modelData.duration) y: root.hourHeight * model.modelData.starts x: Kube.Units.gridUnit * model.modelData.indention - color: model.modelData.color + //color: model.modelData.color + color: Kube.Colors.bewareOrange border.width: 1 border.color: Kube.Colors.viewBackgroundColor -- cgit v1.2.3