From f6a2584d31350db7a6c15c3297390c5d1888f268 Mon Sep 17 00:00:00 2001 From: 28allday Date: Sun, 14 Jun 2026 12:00:16 +0100 Subject: [PATCH] fix(nosignal): square notification toasts + guard lock screen.name - Notification toasts: square the cards + round urgency/icon badges (Tokens.rounding.full ignored rounding.scale) and hide/flatten the notifsBg blob (deformAmount 0, radius 0, opacity 0) so toasts are flat square cards. - LockSurface: guard screen?.name to silence a transient init warning. Co-Authored-By: Claude Opus 4.8 (1M context) --- modules/drawers/ContentWindow.qml | 3 +++ modules/lock/LockSurface.qml | 4 ++-- modules/notifications/Content.qml | 2 +- modules/notifications/Notification.qml | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/drawers/ContentWindow.qml b/modules/drawers/ContentWindow.qml index 405626a9..d362e816 100644 --- a/modules/drawers/ContentWindow.qml +++ b/modules/drawers/ContentWindow.qml @@ -209,6 +209,9 @@ StyledWindow { id: notifsBg panel: panels.notifications + deformAmount: 0 // NoSignal: square notification toasts + radius: 0 + opacity: 0 // toasts draw their own square cards } PanelBg { diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index 4b8febad..95f0d6ca 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -26,8 +26,8 @@ WlSessionLockSurface { readonly property bool errored: root.pam.state === "error" || root.pam.state === "fail" - contentItem.Config.screen: screen.name - contentItem.Tokens.screen: screen.name + contentItem.Config.screen: screen?.name ?? "" + contentItem.Tokens.screen: screen?.name ?? "" color: "transparent" diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml index df8418c4..e7f304a2 100644 --- a/modules/notifications/Content.qml +++ b/modules/notifications/Content.qml @@ -63,7 +63,7 @@ Item { anchors.rightMargin: root.clampedPadding color: "transparent" - radius: Tokens.rounding.large + radius: 0 StyledListView { id: list diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 5a10b8e7..6a6e63f8 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -23,7 +23,7 @@ StyledRect { property bool expanded: Config.notifs.openExpanded color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3secondaryContainer : Colours.tPalette.m3surfaceContainer - radius: Tokens.rounding.large + radius: 0 implicitHeight: inner.implicitHeight @@ -116,7 +116,7 @@ StyledRect { visible: root.hasImage || root.hasAppIcon sourceComponent: StyledClippingRect { - radius: Tokens.rounding.full + radius: 0 color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3error : root.modelData.urgency === NotificationUrgency.Low ? Colours.layer(Colours.palette.m3surfaceContainerHighest, 2) : Colours.palette.m3secondaryContainer implicitWidth: TokenConfig.sizes.notifs.image implicitHeight: TokenConfig.sizes.notifs.image @@ -147,7 +147,7 @@ StyledRect { anchors.bottom: root.hasImage ? image.bottom : undefined sourceComponent: StyledRect { - radius: Tokens.rounding.full + radius: 0 color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3error : root.modelData.urgency === NotificationUrgency.Low ? Colours.layer(Colours.palette.m3surfaceContainerHighest, 2) : Colours.palette.m3secondaryContainer implicitWidth: root.hasImage ? Tokens.sizes.notifs.badge : TokenConfig.sizes.notifs.image implicitHeight: root.hasImage ? Tokens.sizes.notifs.badge : TokenConfig.sizes.notifs.image @@ -358,7 +358,7 @@ StyledRect { implicitHeight: expandIcon.implicitHeight StateLayer { - radius: Tokens.rounding.full + radius: 0 color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface onClicked: root.expanded = !root.expanded }