From 9f1274bf700dfea4f2665ae6c5bb3c0d09bdc1f6 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 26 Nov 2020 20:12:38 +0200 Subject: [PATCH] remove deprecated property --- containment/package/contents/ui/colorizer/Manager.qml | 1 - containment/package/contents/ui/main.qml | 2 -- indicators/default/package/ui/main.qml | 1 + plasmoid/package/contents/ui/main.qml | 7 ------- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/containment/package/contents/ui/colorizer/Manager.qml b/containment/package/contents/ui/colorizer/Manager.qml index 87a2f9adc..bc6ddbd4d 100644 --- a/containment/package/contents/ui/colorizer/Manager.qml +++ b/containment/package/contents/ui/colorizer/Manager.qml @@ -41,7 +41,6 @@ Loader{ readonly property real themeTextColorBrightness: ColorizerTools.colorBrightness(textColor) readonly property real backgroundColorBrightness: ColorizerTools.colorBrightness(backgroundColor) - readonly property color minimizedDotColor: themeTextColorBrightness > 127.5 ? Qt.darker(textColor, 1.7) : Qt.lighter(textColor, 8) readonly property color focusGlowColor: Qt.hsva(buttonFocusColor.h, buttonFocusColor.s, 1.0, 1.0) diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index c3b307f16..89c1a5584 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -433,8 +433,6 @@ Item { property int tasksCount: latteApplet ? latteApplet.tasksCount : 0 property rect screenGeometry: latteView ? latteView.screenGeometry : plasmoid.screenGeometry - - readonly property color minimizedDotColor: colorizerManager.minimizedDotColor ///END properties from latteApplet diff --git a/indicators/default/package/ui/main.qml b/indicators/default/package/ui/main.qml index f8bb12ae4..c2af12989 100644 --- a/indicators/default/package/ui/main.qml +++ b/indicators/default/package/ui/main.qml @@ -50,6 +50,7 @@ LatteComponents.IndicatorItem{ return isActiveColor; } + property color notActiveColor: indicator.isMinimized ? minimizedColor : isActiveColor //! Common Options diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index b1f689493..505ec093d 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -108,13 +108,6 @@ Item { property int internalHeightMargins: !root.vertical ? metrics.totals.thicknessEdges : metrics.totals.lengthPaddings property real textColorBrightness: ColorizerTools.colorBrightness(themeTextColor) - property color minimizedDotColor: { - if (latteView) { - return latteView.minimizedDotColor; - } - - return textColorBrightness > 127.5 ? Qt.darker(themeTextColor, 1.7) : Qt.lighter(themeBackgroundColor, 7) - } property color themeTextColor: theme.textColor property color themeBackgroundColor: theme.backgroundColor