diff options
Diffstat (limited to 'desktop/island')
| -rw-r--r-- | desktop/island/calendar/CalendarPanel.qml | 13 |
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 |
