mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +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
|
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
|
||||||
|
|
@ -67,7 +54,21 @@ Item {
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
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
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
radius: units.gridUnit
|
radius: units.gridUnit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue