From a99f6cac5e0f0d371d70b2fdee1f883b0fdca785 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 21 Oct 2025 20:10:52 +0200 Subject: [PATCH] sidebar: fix weird anim on toggle buttons --- .../quickshell/ii/modules/common/widgets/GroupButton.qml | 2 ++ .../quickToggles/androidStyle/AndroidQuickToggleButton.qml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/GroupButton.qml b/dots/.config/quickshell/ii/modules/common/widgets/GroupButton.qml index 6ebe3341f..ed93eb77f 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/GroupButton.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/GroupButton.qml @@ -79,7 +79,9 @@ Button { animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) } + property alias mouseArea: buttonMouseArea MouseArea { + id: buttonMouseArea anchors.fill: parent cursorShape: Qt.PointingHandCursor acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton diff --git a/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidQuickToggleButton.qml b/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidQuickToggleButton.qml index 18848c21d..9165bcf56 100644 --- a/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidQuickToggleButton.qml +++ b/dots/.config/quickshell/ii/modules/sidebarRight/quickToggles/androidStyle/AndroidQuickToggleButton.qml @@ -23,8 +23,8 @@ GroupButton { baseHeight: root.baseCellHeight property bool editMode: false - enableImplicitWidthAnimation: !editMode - enableImplicitHeightAnimation: !editMode + enableImplicitWidthAnimation: !editMode && root.mouseArea.containsMouse + enableImplicitHeightAnimation: !editMode && root.mouseArea.containsMouse Behavior on baseWidth { animation: Appearance.animation.elementMove.numberAnimation.createObject(this) }