visible button

This commit is contained in:
Marco Martin 2019-10-11 12:06:12 +02:00
parent 3b33ffc49c
commit 7347c671a3

View file

@ -22,7 +22,7 @@ import QtQuick.Layouts 1.1
import QtQuick.Window 2.2 import QtQuick.Window 2.2
import org.kde.taskmanager 0.1 as TaskManager import org.kde.taskmanager 0.1 as TaskManager
import org.kde.plasma.core 2.1 as PlasmaCore import org.kde.plasma.core 2.1 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.plasma.private.nanoshell 2.0 as NanoShell import org.kde.plasma.private.nanoshell 2.0 as NanoShell
NanoShell.FullScreenOverlay { NanoShell.FullScreenOverlay {
@ -184,23 +184,15 @@ NanoShell.FullScreenOverlay {
} }
} }
Rectangle { PlasmaComponents.RoundButton {
color: theme.textColor
anchors {
fill: showDesktopButton
margins: -showDesktopButton.width/4
}
radius: width
}
Button {
id: showDesktopButton id: showDesktopButton
height: units.iconSizes.medium height: units.iconSizes.large
width: height width: height
anchors { anchors {
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter
bottom: parent.bottom bottom: parent.bottom
} }
iconSource: "start-here-kde" icon.name: "start-here-kde"
onClicked: { onClicked: {
currentTaskIndex = -1; currentTaskIndex = -1;
window.hide(); window.hide();