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:
parent
da0063cb57
commit
c5fed17941
2 changed files with 3 additions and 3 deletions
|
|
@ -189,7 +189,7 @@ impl Render for NotificationStory {
|
||||||
window.push_notification(
|
window.push_notification(
|
||||||
Notification::new()
|
Notification::new()
|
||||||
.id::<ManualOpenNotification>()
|
.id::<ManualOpenNotification>()
|
||||||
.message("Click the Close Notification button to close.")
|
.message("You can close this notification by clicking the Close button.")
|
||||||
.autohide(false),
|
.autohide(false),
|
||||||
cx,
|
cx,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -270,9 +270,9 @@ impl Render for Notification {
|
||||||
.border_1()
|
.border_1()
|
||||||
.border_color(cx.theme().border)
|
.border_color(cx.theme().border)
|
||||||
.bg(cx.theme().popover)
|
.bg(cx.theme().popover)
|
||||||
.rounded(cx.theme().radius)
|
.rounded(cx.theme().radius * 1.5)
|
||||||
.shadow_md()
|
.shadow_md()
|
||||||
.py_2()
|
.py_3p5()
|
||||||
.px_4()
|
.px_4()
|
||||||
.gap_3()
|
.gap_3()
|
||||||
.when_some(icon, |this, icon| {
|
.when_some(icon, |this, icon| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue