mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
central button shows desktop
This commit is contained in:
parent
5f412e8b75
commit
4993e73cfa
3 changed files with 10 additions and 3 deletions
|
|
@ -32,7 +32,9 @@ Item {
|
|||
}
|
||||
|
||||
function closeWindowList() {
|
||||
mainItemLoader.item.closeWindowList()
|
||||
if (mainItemLoader.item) {
|
||||
mainItemLoader.item.closeWindowList()
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
|
|
|
|||
|
|
@ -40,12 +40,16 @@ PlasmaCore.Dialog {
|
|||
PlasmaComponents.ToolButton {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
iconSource: "go-home"
|
||||
onClicked: root.closeWindowList();
|
||||
onClicked: {
|
||||
root.closeWindowList();
|
||||
workspace.slotToggleShowDesktop();
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaComponents.ToolButton {
|
||||
anchors.right: parent.right
|
||||
iconSource: "window-close"
|
||||
enabled: workspace.activeClient
|
||||
onClicked: workspace.activeClient.closeWindow();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,9 +40,10 @@ PlasmaCore.Dialog {
|
|||
showAnim.running = true;
|
||||
}
|
||||
}
|
||||
mainItem: Item {
|
||||
mainItem: Rectangle {
|
||||
width: workspace.virtualScreenSize.width
|
||||
height: workspace.virtualScreenSize.height
|
||||
color: Qt.rgba(0, 0, 0, 0.5)
|
||||
|
||||
SequentialAnimation {
|
||||
id: hideAnim
|
||||
|
|
|
|||
Loading…
Reference in a new issue