From 46ec02640475788ab059832d0cdbe29c96a70247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bellegarde?= Date: Thu, 24 Aug 2023 07:42:26 +0200 Subject: [PATCH] client: move ComponentsInAppNotification as a toast Fix #1207 --- src/client/components/components-in-app-notification.vala | 3 ++- ui/components-in-app-notification.ui | 3 ++- ui/geary.css | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/client/components/components-in-app-notification.vala b/src/client/components/components-in-app-notification.vala index 05885165..044fd0c8 100644 --- a/src/client/components/components-in-app-notification.vala +++ b/src/client/components/components-in-app-notification.vala @@ -8,6 +8,7 @@ * Represents an in-app notification. * * Following the GNOME HIG, it should only contain a label and maybe a button. + * Looks like libadwaita toast, remove this when porting toward GTK4 */ [GtkTemplate (ui = "/org/gnome/Geary/components-in-app-notification.ui")] public class Components.InAppNotification : Gtk.Revealer { @@ -30,7 +31,7 @@ public class Components.InAppNotification : Gtk.Revealer { */ public InAppNotification(string message, uint duration = DEFAULT_DURATION) { - this.transition_type = Gtk.RevealerTransitionType.SLIDE_DOWN; + this.transition_type = Gtk.RevealerTransitionType.CROSSFADE; this.message_label.label = message; this.duration = duration; } diff --git a/ui/components-in-app-notification.ui b/ui/components-in-app-notification.ui index a355074d..fd1faac3 100644 --- a/ui/components-in-app-notification.ui +++ b/ui/components-in-app-notification.ui @@ -4,9 +4,10 @@