From 74368ad25a644fa085810d54d617bd22f59b6e74 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 6 Feb 2026 22:38:58 +0100 Subject: [PATCH] hefty: bar: ws: bouncy special ws --- .../ii/modules/common/widgets/ButtonMouseArea.qml | 9 +++++++++ .../hefty/topLayer/bar/widgets/HWorkspaces.qml | 13 +++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 dots/.config/quickshell/ii/modules/common/widgets/ButtonMouseArea.qml diff --git a/dots/.config/quickshell/ii/modules/common/widgets/ButtonMouseArea.qml b/dots/.config/quickshell/ii/modules/common/widgets/ButtonMouseArea.qml new file mode 100644 index 000000000..d7b42cb91 --- /dev/null +++ b/dots/.config/quickshell/ii/modules/common/widgets/ButtonMouseArea.qml @@ -0,0 +1,9 @@ +pragma ComponentBehavior: Bound +import QtQuick + +// MouseArea that contains good defaults for buttons +MouseArea { + id: root + hoverEnabled: true + cursorShape: Qt.PointingHandCursor +} diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml index ff8965df2..469de3155 100644 --- a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HWorkspaces.qml @@ -39,9 +39,9 @@ Item { implicitWidth: vertical ? Appearance.sizes.verticalBarWidth : occupiedIndicators.implicitWidth implicitHeight: vertical ? occupiedIndicators.implicitHeight : Appearance.sizes.barHeight - property real specialBlur: wsModel.specialWorkspaceActive ? 1 : 0 + property real specialBlur: (wsModel.specialWorkspaceActive && !interactionMouseArea.containsMouse) ? 1 : 0 Behavior on specialBlur { - animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) + animation: Appearance.animation.elementMoveSmall.numberAnimation.createObject(this) } Item { @@ -133,7 +133,7 @@ Item { } /////////////////// Hover /////////////////// - MouseArea { + ButtonMouseArea { id: interactionMouseArea anchors.fill: parent cursorShape: Qt.PointingHandCursor @@ -268,13 +268,10 @@ Item { FadeLoader { anchors.centerIn: parent - shown: wsModel.specialWorkspaceActive - + shown: wsModel.specialWorkspaceActive && root.specialBlur > 0 scale: 0.8 + 0.2 * root.specialBlur - // layer.enabled: true - // layer.smooth: true - Pill { + sourceComponent: Pill { anchors.centerIn: parent property real undirectionalWidth: root.activeWorkspaceSize property real undirectionalLength: {