forked from Shinonome/dots-hyprland
sidebar: fix weird anim on toggle buttons
This commit is contained in:
@@ -79,7 +79,9 @@ Button {
|
|||||||
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property alias mouseArea: buttonMouseArea
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: buttonMouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
|
|||||||
+2
-2
@@ -23,8 +23,8 @@ GroupButton {
|
|||||||
baseHeight: root.baseCellHeight
|
baseHeight: root.baseCellHeight
|
||||||
|
|
||||||
property bool editMode: false
|
property bool editMode: false
|
||||||
enableImplicitWidthAnimation: !editMode
|
enableImplicitWidthAnimation: !editMode && root.mouseArea.containsMouse
|
||||||
enableImplicitHeightAnimation: !editMode
|
enableImplicitHeightAnimation: !editMode && root.mouseArea.containsMouse
|
||||||
Behavior on baseWidth {
|
Behavior on baseWidth {
|
||||||
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user