Commit 3699efae authored by Pier Luigi Fiorini's avatar Pier Luigi Fiorini

Refactor layers and switch z-index between home and applications

parent 396d88c2
......@@ -22,6 +22,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import "WindowManagement.js" as WindowManagement
Rectangle {
property bool showHome: true
readonly property alias layers: layers
readonly property real topBarHeight: units.iconSizes.small
......@@ -39,22 +40,23 @@ Rectangle {
onSurfaceDestroyed: WindowManagement.surfaceDestroyed(surface)
}
Item {
QtObject {
readonly property alias desktop: desktopLayer
readonly property alias windows: windowsLayer
id: layers
anchors.fill: parent
}
Item {
id: desktopLayer
anchors.fill: parent
}
Item {
id: desktopLayer
anchors.fill: parent
z: showHome ? 2 : 1
}
Item {
id: windowsLayer
anchors.fill: parent
anchors.topMargin: topBarHeight
}
Item {
id: windowsLayer
anchors.fill: parent
anchors.topMargin: topBarHeight
z: showHome ? 1 : 2
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment