From 11e2ae62baf87daf2135ce55d1ebfdf515969572 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 19 May 2021 19:38:14 +0200 Subject: [PATCH] Add a bit more contrast to event indicator in calendar Now make it darker on light theme and lighter on dark theme CCBUG: 437203 --- src/declarativeimports/calendar/qml/DayDelegate.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/declarativeimports/calendar/qml/DayDelegate.qml b/src/declarativeimports/calendar/qml/DayDelegate.qml index fee0ccb42..af31991db 100644 --- a/src/declarativeimports/calendar/qml/DayDelegate.qml +++ b/src/declarativeimports/calendar/qml/DayDelegate.qml @@ -14,6 +14,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents2 // For Highlight import org.kde.plasma.components 3.0 as PlasmaComponents3 import org.kde.plasma.extras 2.0 as PlasmaExtras import QtQml.Models 2.15 +import org.kde.kirigami 2.12 as Kirigami import org.kde.plasma.calendar 2.0 @@ -85,7 +86,7 @@ PlasmaComponents3.AbstractButton { width: PlasmaCore.Units.smallSpacing * 1.5 height: width radius: width / 2 - color: eventColor || PlasmaCore.Theme.highlightColor + color: model.eventColor ? Kirigami.ColorUtils.linearInterpolation(model.eventColor, PlasmaCore.Theme.textColor, 0.2) : PlasmaCore.Theme.highlightColor } } }