wbar: (partial) right click menu for start button

This commit is contained in:
end-4
2025-11-15 08:27:31 +01:00
parent 4e86ec9fe9
commit d0de047db0
9 changed files with 148 additions and 8 deletions
@@ -18,6 +18,11 @@ AppButton {
onClicked: {
GlobalStates.sidebarLeftOpen = !GlobalStates.sidebarLeftOpen
}
onDownChanged: {
scaleAnim.duration = root.down ? 150 : 200
scaleAnim.easing.bezierCurve = root.down ? Looks.transition.easing.bezierCurve.easeIn : Looks.transition.easing.bezierCurve.easeOut
iconWidget.scale = root.down ? 5/6 : 1 // If/When we do dragging, the scale is 1.25
}
contentItem: Item {
anchors {
@@ -41,6 +46,13 @@ AppButton {
id: iconWidget
anchors.verticalCenter: parent.verticalCenter
iconName: root.iconName
Behavior on scale {
NumberAnimation {
id: scaleAnim
easing.type: Easing.BezierSpline
}
}
}
Column {