From 7ab8012e0e7e5ce990897e802061d1c58b332c28 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 26 May 2025 12:28:47 +0200 Subject: [PATCH] notif clear button: ripple -> bouncy --- .../notifications/NotificationStatusButton.qml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.config/quickshell/modules/sidebarRight/notifications/NotificationStatusButton.qml b/.config/quickshell/modules/sidebarRight/notifications/NotificationStatusButton.qml index 0f29107a..f5bb6844 100644 --- a/.config/quickshell/modules/sidebarRight/notifications/NotificationStatusButton.qml +++ b/.config/quickshell/modules/sidebarRight/notifications/NotificationStatusButton.qml @@ -4,23 +4,20 @@ import QtQuick import QtQuick.Controls import QtQuick.Layouts -RippleButton { +GroupButton { id: button property string buttonText: "" property string buttonIcon: "" - implicitHeight: 30 - implicitWidth: contentRowLayout.implicitWidth + 10 * 2 - Behavior on implicitWidth { - SmoothedAnimation { - velocity: Appearance.animation.elementMove.velocity - } - } + baseWidth: contentRowLayout.implicitWidth + 10 * 2 + baseHeight: 30 + clickedWidth: baseWidth + 15 - buttonRadius: Appearance.rounding.full + buttonRadius: baseHeight / 2 + buttonRadiusPressed: Appearance.rounding.small colBackground: Appearance.colors.colLayer2 colBackgroundHover: Appearance.colors.colLayer2Hover - colRipple: Appearance.colors.colLayer2Active + colBackgroundActive: Appearance.colors.colLayer2Active background.anchors.fill: button contentItem: Item {