From e74833e9abab28ce6b7aa45f638c0ff997298fce Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 29 Aug 2020 18:17:56 -0400 Subject: [PATCH] Fix top panel being greyed out by SlidingPanel --- containments/panel/package/contents/ui/SlidingPanel.qml | 1 + containments/panel/package/contents/ui/main.qml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/containments/panel/package/contents/ui/SlidingPanel.qml b/containments/panel/package/contents/ui/SlidingPanel.qml index 27f6db89..23436929 100644 --- a/containments/panel/package/contents/ui/SlidingPanel.qml +++ b/containments/panel/package/contents/ui/SlidingPanel.qml @@ -123,6 +123,7 @@ NanoShell.FullScreenOverlay { Rectangle { anchors { fill: parent + topMargin: root.height // top panel background handled separately in main.qml } color: "black" opacity: 0.6 * Math.min(1, offset/contentArea.height) diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index 29874677..6489f378 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -163,6 +163,7 @@ Item { source: icons } + // screen top panel PlasmaCore.ColorScope { id: icons z: 1 @@ -248,6 +249,14 @@ Item { Indicators.Battery {} } } + + // screen top panel background (background for the rest of the screen in SlidingPanel.qml) + Rectangle { + anchors.fill: parent + color: "black" + opacity: 0.6 * Math.min(1, slidingPanel.offset/panelContents.height) + } + MouseArea { z: 99 property int oldMouseY: 0