Fix top panel being greyed out by SlidingPanel

This commit is contained in:
Devin Lin 2020-08-29 18:17:56 -04:00
parent 8eecc27cbc
commit e74833e9ab
2 changed files with 10 additions and 0 deletions

View file

@ -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)

View file

@ -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