notification: Better style details (#982)

| Before | After |
| - | - |
| <img width="752" alt="Before"
src="https://github.com/user-attachments/assets/d4e08e87-100a-4b8d-90f3-909900d41e66"
/> | <img width="752" alt="After"
src="https://github.com/user-attachments/assets/e84c145e-8990-4c47-bbff-0d4e86acca64"
/> |
This commit is contained in:
Floyd Wang 2025-06-18 14:21:25 +08:00 committed by GitHub
parent da0063cb57
commit c5fed17941
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -189,7 +189,7 @@ impl Render for NotificationStory {
window.push_notification(
Notification::new()
.id::<ManualOpenNotification>()
.message("Click the Close Notification button to close.")
.message("You can close this notification by clicking the Close button.")
.autohide(false),
cx,
);

View file

@ -270,9 +270,9 @@ impl Render for Notification {
.border_1()
.border_color(cx.theme().border)
.bg(cx.theme().popover)
.rounded(cx.theme().radius)
.rounded(cx.theme().radius * 1.5)
.shadow_md()
.py_2()
.py_3p5()
.px_4()
.gap_3()
.when_some(icon, |this, icon| {