From 6fbb2d7d0ddbd37d52efdfd669ad2b213737c624 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 24 Jun 2019 22:56:44 +0300 Subject: [PATCH] define specific prominent badge colors --- plasmoid/package/contents/ui/task/ProgressOverlay.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plasmoid/package/contents/ui/task/ProgressOverlay.qml b/plasmoid/package/contents/ui/task/ProgressOverlay.qml index 51b9cfbab..2bf6465cf 100644 --- a/plasmoid/package/contents/ui/task/ProgressOverlay.qml +++ b/plasmoid/package/contents/ui/task/ProgressOverlay.qml @@ -85,7 +85,7 @@ Item { color: theme.backgroundColor textColor: { if (showsInfoBadge) { - return root.infoBadgeProminentColorEnabled ? root.lightTextColor : theme.highlightedTextColor + return root.infoBadgeProminentColorEnabled ? prominentTextColor : theme.highlightedTextColor } return theme.textColor; @@ -94,7 +94,7 @@ Item { highlightedColor: { if (showsInfoBadge) { - return root.infoBadgeProminentColorEnabled ? theme.negativeTextColor : theme.highlightColor + return root.infoBadgeProminentColorEnabled ? prominentBackColor : theme.highlightColor } return theme.buttonFocusColor; @@ -115,6 +115,9 @@ Item { return 0; } + readonly property color prominentBackColor: "#cc0000" //redish (deprecated: theme.negativeTextColor) + readonly property color prominentTextColor: "#f3f3f3" //whitish (deprecated: root.lightTextColor) + readonly property bool showsInfoBadge: ((taskItem.badgeIndicator > 0) || (taskIcon.smartLauncherItem && taskIcon.smartLauncherItem.countVisible && !taskIcon.smartLauncherItem.progressVisible))