mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
keep the bottom bar always visible
This commit is contained in:
parent
fe17a804bc
commit
9f47529ccb
1 changed files with 23 additions and 2 deletions
|
|
@ -33,6 +33,7 @@ Rectangle {
|
||||||
|
|
||||||
onCurrentWindowChanged: {
|
onCurrentWindowChanged: {
|
||||||
if (!currentWindow) {
|
if (!currentWindow) {
|
||||||
|
compositorRoot.state = "homeScreen";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
compositorRoot.state = "application";
|
compositorRoot.state = "application";
|
||||||
|
|
@ -132,8 +133,8 @@ Rectangle {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
height: (!windowsLayer.switchMode) ? 0 : bottomBarHeight
|
height: compositorRoot.state == "homeScreen" ? 0 : bottomBarHeight
|
||||||
color: Qt.rgba(0, 0, 0, 0.5)
|
color: Qt.rgba(0, 0, 0, (compositorRoot.state == "application" ? 1.0 : 0.5))
|
||||||
|
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
NumberAnimation {
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue