Commit 5c916daa authored by Pier Luigi Fiorini's avatar Pier Luigi Fiorini

Add an icon to return home from applications

parent 965bd467
......@@ -26,6 +26,7 @@ Rectangle {
property bool showHome: true
readonly property alias layers: layers
readonly property real topBarHeight: units.iconSizes.small
readonly property real bottomBarHeight: units.iconSizes.medium
id: compositorRoot
color: "black"
......@@ -37,7 +38,7 @@ Rectangle {
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
z: 4
z: 1000
}
ListModel {
......@@ -68,6 +69,37 @@ Rectangle {
id: windowsLayer
anchors.fill: parent
anchors.topMargin: topBarHeight
anchors.bottomMargin: bottomBar.height
z: showHome ? 1 : 2
}
Rectangle {
id: bottomBar
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: (showSplash || showHome) ? 0 : bottomBarHeight
color: "black"
z: showHome ? 0 : 2
Behavior on height {
NumberAnimation {
easing.type: Easing.InOutQuad
duration: units.shortDuration
}
}
PlasmaCore.IconItem {
anchors.centerIn: parent
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
width: units.iconSizes.smallMedium
height: width
source: "go-home"
MouseArea {
anchors.fill: parent
onClicked: showHome = true
}
}
}
}
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