diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 14:17:24 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 14:17:24 +1000 |
| commit | c64e6027257aaf555070089e34bda74c8318b097 (patch) | |
| tree | 8e73e02fb206ee091975c3ecfb1abc917bcd1adb /modules/notifications/Notification.qml | |
| parent | bar: temp import players so ipc works (diff) | |
| download | caelestia-shell-c64e6027257aaf555070089e34bda74c8318b097.tar.gz caelestia-shell-c64e6027257aaf555070089e34bda74c8318b097.tar.bz2 caelestia-shell-c64e6027257aaf555070089e34bda74c8318b097.zip | |
notifs: better sliding
Wrap with clippingrect so x doesnt reset when element is added/removed
Also clippingrect rounds the ends when sliding
Diffstat (limited to 'modules/notifications/Notification.qml')
| -rw-r--r-- | modules/notifications/Notification.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 03b0311..3844aaf 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -18,12 +18,14 @@ StyledRect { readonly property int nonAnimHeight: summary.implicitHeight + (root.expanded ? appName.height + body.height + actions.height + actions.anchors.topMargin : bodyPreview.height) + inner.anchors.margins * 2 property bool expanded - clip: true color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3secondaryContainer : Colours.palette.m3surfaceContainer radius: Appearance.rounding.normal implicitWidth: NotifsConfig.sizes.width implicitHeight: inner.height + x: NotifsConfig.sizes.width + Component.onCompleted: x = 0 + MouseArea { property int startY |