mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
wbar: make task view btn anim less weird
This commit is contained in:
@@ -17,10 +17,12 @@ BarButton {
|
||||
rightInset: 2
|
||||
implicitWidth: height - topInset - bottomInset + leftInset + rightInset
|
||||
|
||||
property real pressedScale: 5/6
|
||||
|
||||
onDownChanged: {
|
||||
scaleAnim.duration = root.down ? 150 : 200
|
||||
scaleAnim.easing.bezierCurve = root.down ? Looks.transition.easing.bezierCurve.easeIn : Looks.transition.easing.bezierCurve.easeOut
|
||||
contentItem.scale = root.down ? 5/6 : 1 // If/When we do dragging, the scale is 1.25
|
||||
contentItem.scale = root.down ? root.pressedScale : 1 // If/When we do dragging, the scale is 1.25
|
||||
}
|
||||
|
||||
background: Item {
|
||||
|
||||
@@ -10,6 +10,7 @@ AppButton {
|
||||
id: root
|
||||
|
||||
iconName: (down && !checked) ? "task-view-pressed" : "task-view"
|
||||
pressedScale: checked ? 5/6 : 1
|
||||
separateLightDark: true
|
||||
|
||||
checked: GlobalStates.overviewOpen
|
||||
|
||||
Reference in New Issue
Block a user