theme: add info severity color token

This commit is contained in:
2026-10-31 09:34:09 +07:00
parent d53f4e290d
commit 9ddf8fe90f
8 changed files with 83 additions and 5 deletions
+15
View File
@@ -555,6 +555,21 @@ impl Render for Gallery {
))
.child(
div().flex().gap_2().children([
{
let toasts = self.toasts.clone();
Button::new("gallery-toast-info")
.label("Info")
.variant(ButtonVariant::Secondary)
.on_click(move |_, _, cx| {
toasts.update(cx, |toasts, cx| {
toasts.push(
Toast::new("New version available")
.message("Reload to update to 2.4.0."),
cx,
);
});
})
},
{
let toasts = self.toasts.clone();
Button::new("gallery-toast-success")