forked from reya/gpui-native-kit
chore: clean up
This commit is contained in:
@@ -191,12 +191,12 @@ impl RenderOnce for Alert {
|
||||
.flex_none()
|
||||
.cursor_pointer()
|
||||
.p_0p5()
|
||||
.rounded(px(4.))
|
||||
.rounded(theme.radius.sm)
|
||||
.hover(|style| style.bg(muted))
|
||||
.child(
|
||||
icon(IconRole::Close)
|
||||
.size(theme.sizes.small.dense_icon_size)
|
||||
.color(foreground.alpha(0.55)),
|
||||
.color(theme.colors.muted_foreground),
|
||||
)
|
||||
.on_click(move |_, _window, cx| on_dismiss(cx)),
|
||||
)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
//! Toasts: succinct, temporary messages at the bottom center of the window
|
||||
//! — Adwaita Toast, the macOS banner. One toast at a time: content, an
|
||||
//! optional action, and a close button; fades in, then fades out.
|
||||
//! Toasts: succinct, temporary messages at the bottom center of the window.
|
||||
|
||||
use std::rc::Rc;
|
||||
use std::time::Duration;
|
||||
@@ -333,12 +331,12 @@ fn pill(entry: &ToastEntry, toasts: &Entity<Toasts>, cx: &App) -> gpui::Stateful
|
||||
.ml_4()
|
||||
.cursor_pointer()
|
||||
.p_0p5()
|
||||
.rounded(px(4.))
|
||||
.rounded(theme.radius.sm)
|
||||
.hover(|style| style.bg(muted))
|
||||
.child(
|
||||
icon(IconRole::Close)
|
||||
.size(dense_icon_size)
|
||||
.color(foreground.alpha(0.55)),
|
||||
.color(theme.colors.muted_foreground),
|
||||
)
|
||||
.on_click(move |_, _window, cx| {
|
||||
toasts.update(cx, |toasts, cx| {
|
||||
|
||||
Reference in New Issue
Block a user