mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Fix top panel being greyed out by SlidingPanel
This commit is contained in:
parent
8eecc27cbc
commit
e74833e9ab
2 changed files with 10 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ NanoShell.FullScreenOverlay {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
|
topMargin: root.height // top panel background handled separately in main.qml
|
||||||
}
|
}
|
||||||
color: "black"
|
color: "black"
|
||||||
opacity: 0.6 * Math.min(1, offset/contentArea.height)
|
opacity: 0.6 * Math.min(1, offset/contentArea.height)
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,7 @@ Item {
|
||||||
source: icons
|
source: icons
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// screen top panel
|
||||||
PlasmaCore.ColorScope {
|
PlasmaCore.ColorScope {
|
||||||
id: icons
|
id: icons
|
||||||
z: 1
|
z: 1
|
||||||
|
|
@ -248,6 +249,14 @@ Item {
|
||||||
Indicators.Battery {}
|
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 {
|
MouseArea {
|
||||||
z: 99
|
z: 99
|
||||||
property int oldMouseY: 0
|
property int oldMouseY: 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue