Commit 9f47529c authored by Marco Martin's avatar Marco Martin

keep the bottom bar always visible

parent fe17a804
......@@ -33,6 +33,7 @@ Rectangle {
onCurrentWindowChanged: {
if (!currentWindow) {
compositorRoot.state = "homeScreen";
return;
}
compositorRoot.state = "application";
......@@ -132,8 +133,8 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: (!windowsLayer.switchMode) ? 0 : bottomBarHeight
color: Qt.rgba(0, 0, 0, 0.5)
height: compositorRoot.state == "homeScreen" ? 0 : bottomBarHeight
color: Qt.rgba(0, 0, 0, (compositorRoot.state == "application" ? 1.0 : 0.5))
Behavior on height {
NumberAnimation {
......@@ -162,6 +163,26 @@ Rectangle {
}
}
}
PlasmaCore.IconItem {
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
width: units.iconSizes.smallMedium
height: width
source: "window-close"
enabled: compositorRoot.currentWindow
opacity: enabled ? 1 : 0.6
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: units.iconSizes.medium
Layout.preferredHeight: units.iconSizes.medium
MouseArea {
anchors.fill: parent
onClicked: {
compositorRoot.state = "homeScreen";
compositorRoot.currentWindow.close();
}
}
}
}
}
......
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