aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/island/calendar
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-13 10:33:41 +0200
committerDanilo M. <danix@danix.xyz>2026-10-13 10:33:41 +0200
commita4b6d435848596f4c5f4fd4957275cc1b6452921 (patch)
treefb3fccc1d1357c63b800ead2039f931cbe6c9105 /desktop/island/calendar
parent738cfbc15f104c68834e863b2da69bdcc69e039b (diff)
downloadquickshell-a4b6d435848596f4c5f4fd4957275cc1b6452921.tar.gz
quickshell-a4b6d435848596f4c5f4fd4957275cc1b6452921.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/calendar')
-rw-r--r--desktop/island/calendar/CalendarPanel.qml13
1 files changed, 12 insertions, 1 deletions
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