From a4b6d435848596f4c5f4fd4957275cc1b6452921 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 13 Oct 2026 10:33:41 +0200 Subject: feat(calendar): a bell on agenda rows whose event has an alarm Checking a day's reminders meant opening each event. The bell shows when the event carries its own VALARM, preset or custom. cal-notif's per-calendar defaults are not reflected: they are its configuration, not a property of the event. Co-Authored-By: Claude Opus 5.5 --- desktop/island/calendar/CalendarPanel.qml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'desktop/island/calendar/CalendarPanel.qml') diff --git a/desktop/island/calendar/CalendarPanel.qml b/desktop/island/calendar/CalendarPanel.qml index 5d193eb..602f58a 100644 --- a/desktop/island/calendar/CalendarPanel.qml +++ b/desktop/island/calendar/CalendarPanel.qml @@ -10,6 +10,7 @@ // GNU General Public License for more details. import Quickshell +import Quickshell.Widgets import QtQuick import "../.." import "Cal.js" as Cal @@ -269,12 +270,22 @@ Item { font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 5 } } Text { - anchors { left: when.right; right: parent.right; rightMargin: 8; verticalCenter: parent.verticalCenter } + anchors { left: when.right; right: bell.left; rightMargin: 6; verticalCenter: parent.verticalCenter } elide: Text.ElideRight text: row.modelData.title color: Theme.text font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 4 } } + // The event's own alarm, so a day can be checked without + // opening each event. cal-notif's per-calendar defaults are + // not shown: they are its config, not the event's. + IconImage { + id: bell + anchors { right: parent.right; rightMargin: 8; verticalCenter: parent.verticalCenter } + visible: row.modelData.alarm !== "none" + implicitSize: visible ? 14 : 0 + source: Quickshell.iconPath("bell", true) + } MouseArea { id: rowHover anchors.fill: parent -- cgit v1.2.3