Commit 4993e73c authored by Marco Martin's avatar Marco Martin

central button shows desktop

parent 5f412e8b
......@@ -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
......
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