theme: add info severity color token
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user