mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
slide close button too
This commit is contained in:
parent
c550879fe9
commit
d30863f959
1 changed files with 16 additions and 15 deletions
|
|
@ -33,20 +33,7 @@ Item {
|
|||
fill: parent
|
||||
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 {
|
||||
id: slideAnim
|
||||
property alias to: internalSlideAnim.to
|
||||
|
|
@ -67,7 +54,21 @@ Item {
|
|||
}
|
||||
Rectangle {
|
||||
id: background
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
radius: units.gridUnit
|
||||
|
|
|
|||
Loading…
Reference in a new issue