mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
add a window close button
This commit is contained in:
parent
71219f84d5
commit
c550879fe9
1 changed files with 14 additions and 0 deletions
|
|
@ -33,6 +33,20 @@ Item {
|
||||||
fill: parent
|
fill: parent
|
||||||
margins: units.gridUnit
|
margins: units.gridUnit
|
||||||
}
|
}
|
||||||
|
PlasmaComponents.ToolButton {
|
||||||
|
z: 99
|
||||||
|
iconSource: "window-close"
|
||||||
|
flat: false
|
||||||
|
anchors {
|
||||||
|
top: parent.top
|
||||||
|
right: parent.right
|
||||||
|
margins: -units.gridUnit/2
|
||||||
|
}
|
||||||
|
onClicked: {
|
||||||
|
slideAnim.to = -background.width*2;
|
||||||
|
slideAnim.running = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
id: slideAnim
|
id: slideAnim
|
||||||
property alias to: internalSlideAnim.to
|
property alias to: internalSlideAnim.to
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue