From d0be9616aed528dd319e3b2c2c5192a8b94a4a69 Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 10:36:39 +0200 Subject: [PATCH 1/4] notifcard: increase content right margin to avoid dismiss button overlapping time label --- modules/NotifCard.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/NotifCard.qml b/modules/NotifCard.qml index fa4b8da..e908572 100644 --- a/modules/NotifCard.qml +++ b/modules/NotifCard.qml @@ -121,7 +121,7 @@ Item { anchors.right: parent.right anchors.top: parent.top anchors.leftMargin: _icon.visible ? 8 : 14 - anchors.rightMargin: 12 + anchors.rightMargin: 20 anchors.topMargin: 8 spacing: 2 From 87aeed2ee55722282314edc09bbf66cad07698c6 Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 10:37:49 +0200 Subject: [PATCH 2/4] notifcenter: hide group header chevron when not hovered --- modules/NotifCenter.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/NotifCenter.qml b/modules/NotifCenter.qml index 8b54608..ffb2906 100644 --- a/modules/NotifCenter.qml +++ b/modules/NotifCenter.qml @@ -339,6 +339,7 @@ M.HoverPanel { color: M.Theme.base04 font.pixelSize: M.Theme.fontSize - 2 font.family: M.Theme.fontFamily + opacity: _headerHover.hovered ? 1 : 0 } // App name From 47dbffad0fb9b121843922c92f007f5333e5a89c Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 10:40:44 +0200 Subject: [PATCH 3/4] notifcenter: show one line per notification in collapsed group preview --- modules/NotifCenter.qml | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/modules/NotifCenter.qml b/modules/NotifCenter.qml index ffb2906..0ba2372 100644 --- a/modules/NotifCenter.qml +++ b/modules/NotifCenter.qml @@ -116,7 +116,7 @@ M.HoverPanel { appIcon: g.appIcon, count: g.notifs.length, collapsed: collapsed, - summaries: g.notifs.map(n => n.summary || "").filter(Boolean).join(" ยท ") + summaries: g.notifs.map(n => n.summary || "") }); if (!collapsed) { for (const n of g.notifs) @@ -241,7 +241,7 @@ M.HoverPanel { readonly property real _targetHeight: { if (_type === "header") - return modelData.collapsed ? (28 + M.Theme.fontSize + 4) : 28; + return modelData.collapsed ? (28 + modelData.count * (M.Theme.fontSize + 4)) : 28; return _notifCard.implicitHeight; } @@ -386,22 +386,26 @@ M.HoverPanel { } } - // Collapsed preview: notification summaries on a subtitle row - Text { - visible: notifDelegate._type === "header" && notifDelegate.modelData.collapsed - anchors.left: parent.left - anchors.leftMargin: 10 - anchors.right: parent.right - anchors.rightMargin: 10 - anchors.top: parent.top - anchors.topMargin: 28 - height: M.Theme.fontSize + 4 - verticalAlignment: Text.AlignVCenter - text: notifDelegate._type === "header" ? (notifDelegate.modelData.summaries ?? "") : "" - elide: Text.ElideRight - font.pixelSize: M.Theme.fontSize - 2 - font.family: M.Theme.fontFamily - color: M.Theme.base04 + // Collapsed preview: one line per notification summary + Repeater { + model: (notifDelegate._type === "header" && notifDelegate.modelData.collapsed) ? notifDelegate.modelData.summaries : [] + + Text { + required property string modelData + required property int index + anchors.left: parent.left + anchors.leftMargin: 10 + anchors.right: parent.right + anchors.rightMargin: 10 + y: 28 + index * (M.Theme.fontSize + 4) + height: M.Theme.fontSize + 4 + verticalAlignment: Text.AlignVCenter + text: modelData + elide: Text.ElideRight + font.pixelSize: M.Theme.fontSize - 2 + font.family: M.Theme.fontFamily + color: M.Theme.base04 + } } } From 2bb7f6b8e789b5552889c902868f88cc6488b08b Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 10:41:21 +0200 Subject: [PATCH 4/4] notifpopup: hide when niri overview is open --- modules/NotifPopup.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/NotifPopup.qml b/modules/NotifPopup.qml index b7a2779..c811ad5 100644 --- a/modules/NotifPopup.qml +++ b/modules/NotifPopup.qml @@ -10,7 +10,7 @@ PanelWindow { required property var screen - visible: M.NotifService.popups.length > 0 + visible: M.NotifService.popups.length > 0 && !M.NiriIpc.overviewOpen color: "transparent" WlrLayershell.layer: WlrLayer.Overlay