summaryrefslogtreecommitdiff
path: root/src/modules/notifications.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-16 19:47:23 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-16 19:47:23 +1100
commite539fe0babcf543cf2990e2819d4e9c60e10ba1b (patch)
tree8fe954f3389afc5e8b3a33100f82c00771325289 /src/modules/notifications.tsx
parentnotifications: make popup window (diff)
downloadcaelestia-shell-e539fe0babcf543cf2990e2819d4e9c60e10ba1b.tar.gz
caelestia-shell-e539fe0babcf543cf2990e2819d4e9c60e10ba1b.tar.bz2
caelestia-shell-e539fe0babcf543cf2990e2819d4e9c60e10ba1b.zip
notifications: empty text
Scrollbar less transparent
Diffstat (limited to 'src/modules/notifications.tsx')
-rw-r--r--src/modules/notifications.tsx16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/modules/notifications.tsx b/src/modules/notifications.tsx
index ea98ada..8b50a12 100644
--- a/src/modules/notifications.tsx
+++ b/src/modules/notifications.tsx
@@ -65,9 +65,19 @@ export default () => (
label="Clear"
/>
</box>
- <scrollable expand hscroll={Gtk.PolicyType.NEVER}>
- <List />
- </scrollable>
+ <stack
+ transitionType={Gtk.StackTransitionType.CROSSFADE}
+ transitionDuration={150}
+ shown={bind(AstalNotifd.get_default(), "notifications").as(n => (n.length > 0 ? "list" : "empty"))}
+ >
+ <box vertical valign={Gtk.Align.CENTER} name="empty">
+ <label className="icon" label="notifications_active" />
+ <label label="All caught up!" />
+ </box>
+ <scrollable expand hscroll={Gtk.PolicyType.NEVER} name="list">
+ <List />
+ </scrollable>
+ </stack>
</box>
</PopupWindow>
);