From 21e705443ef76982943f6af493c5d55b0f71aeb6 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 26 May 2025 11:55:59 +0200 Subject: [PATCH] notification item: don't show unnecessary border when it's the only one in the group --- .../quickshell/modules/common/widgets/NotificationItem.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/modules/common/widgets/NotificationItem.qml b/.config/quickshell/modules/common/widgets/NotificationItem.qml index 351f6bc2a..a123ad042 100644 --- a/.config/quickshell/modules/common/widgets/NotificationItem.qml +++ b/.config/quickshell/modules/common/widgets/NotificationItem.qml @@ -20,7 +20,7 @@ Item { // Notification item area property bool expanded: false property bool onlyNotification: false property real fontSize: Appearance.font.pixelSize.small - property real padding: 8 + property real padding: onlyNotification ? 0 : 8 property real dragConfirmThreshold: 70 // Drag further to discard notification property real dismissOvershoot: notificationIcon.implicitWidth + 20 // Account for gaps and bouncy animations @@ -127,7 +127,7 @@ Item { // Notification item area } } - color: expanded ? + color: (expanded && !onlyNotification) ? (notificationObject.urgency == NotificationUrgency.Critical) ? ColorUtils.mix(Appearance.m3colors.m3secondaryContainer, Appearance.colors.colLayer2, 0.35) : (Appearance.m3colors.m3surfaceContainerHigh) : @@ -202,7 +202,7 @@ Item { // Notification item area Layout.fillWidth: true implicitHeight: actionRowLayout.implicitHeight contentWidth: actionRowLayout.implicitWidth - clip: true + clip: !onlyNotification Behavior on opacity { animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)