From 5717c71a82b50c99e51c1e52e79244791bfeacc8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 18 Sep 2019 15:52:42 +0200 Subject: [PATCH] use the window color to dim --- containments/panel/package/contents/ui/SlidingPanel.qml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/containments/panel/package/contents/ui/SlidingPanel.qml b/containments/panel/package/contents/ui/SlidingPanel.qml index e4f56bf7..33cc72a3 100644 --- a/containments/panel/package/contents/ui/SlidingPanel.qml +++ b/containments/panel/package/contents/ui/SlidingPanel.qml @@ -31,7 +31,7 @@ NanoShell.FullScreenPanel { property bool userInteracting: false property bool expanded: false - color: "transparent" + color: Qt.rgba(0, 0, 0, 0.6 * Math.min(1, offset/contentArea.height)) property alias contents: contentArea.data property int headerHeight @@ -111,11 +111,6 @@ NanoShell.FullScreenPanel { to: contentArea.height } - Rectangle { - anchors.fill: parent - color: Qt.rgba(0, 0, 0, 0.6 * Math.min(1, offset/contentArea.height)) - } - PlasmaCore.ColorScope { anchors.fill: parent y: Math.min(0, -height + window.offset)