From b7197453c5166230d8b4cad1fe2f8d8abeabbabf Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Thu, 12 Mar 2026 08:46:45 +0700 Subject: [PATCH] . --- crates/chat_ui/src/lib.rs | 6 +++--- crates/coop/src/dialogs/accounts.rs | 2 +- crates/coop/src/dialogs/connect.rs | 2 +- crates/coop/src/dialogs/import.rs | 2 +- crates/coop/src/panels/contact_list.rs | 2 +- crates/coop/src/panels/messaging_relays.rs | 2 +- crates/coop/src/panels/relay_list.rs | 2 +- crates/theme/src/colors.rs | 4 ++-- crates/ui/src/notification.rs | 10 ++++------ 9 files changed, 15 insertions(+), 17 deletions(-) diff --git a/crates/chat_ui/src/lib.rs b/crates/chat_ui/src/lib.rs index ab7d589..aab9c72 100644 --- a/crates/chat_ui/src/lib.rs +++ b/crates/chat_ui/src/lib.rs @@ -997,11 +997,11 @@ impl ChatPanel { fn render_message_reports(&self, id: &EventId, cx: &Context) -> impl IntoElement { h_flex() .id(SharedString::from(id.to_hex())) - .gap_0p5() - .text_color(cx.theme().danger_active) + .gap_1() + .text_color(cx.theme().text_danger) .text_xs() .italic() - .child(Icon::new(IconName::Info).xsmall()) + .child(Icon::new(IconName::Info).small()) .child(SharedString::from( "Failed to send message. Click to see details.", )) diff --git a/crates/coop/src/dialogs/accounts.rs b/crates/coop/src/dialogs/accounts.rs index 5d72bd5..49748f3 100644 --- a/crates/coop/src/dialogs/accounts.rs +++ b/crates/coop/src/dialogs/accounts.rs @@ -162,7 +162,7 @@ impl Render for AccountSelector { .italic() .text_xs() .text_center() - .text_color(cx.theme().danger_active) + .text_color(cx.theme().text_danger) .child(error.clone()), ) }) diff --git a/crates/coop/src/dialogs/connect.rs b/crates/coop/src/dialogs/connect.rs index 00b7d2c..8176587 100644 --- a/crates/coop/src/dialogs/connect.rs +++ b/crates/coop/src/dialogs/connect.rs @@ -101,7 +101,7 @@ impl Render for ConnectSigner { div() .text_xs() .text_center() - .text_color(cx.theme().danger_active) + .text_color(cx.theme().text_danger) .child(error.clone()), ) }) diff --git a/crates/coop/src/dialogs/import.rs b/crates/coop/src/dialogs/import.rs index 0b6baf1..e8c111f 100644 --- a/crates/coop/src/dialogs/import.rs +++ b/crates/coop/src/dialogs/import.rs @@ -293,7 +293,7 @@ impl Render for ImportKey { div() .text_xs() .text_center() - .text_color(cx.theme().danger_active) + .text_color(cx.theme().text_danger) .child(error.clone()), ) }) diff --git a/crates/coop/src/panels/contact_list.rs b/crates/coop/src/panels/contact_list.rs index 3935a26..628d75d 100644 --- a/crates/coop/src/panels/contact_list.rs +++ b/crates/coop/src/panels/contact_list.rs @@ -322,7 +322,7 @@ impl Render for ContactListPanel { div() .italic() .text_xs() - .text_color(cx.theme().danger_active) + .text_color(cx.theme().text_danger) .child(error.clone()), ) }), diff --git a/crates/coop/src/panels/messaging_relays.rs b/crates/coop/src/panels/messaging_relays.rs index 32e88cf..66fca40 100644 --- a/crates/coop/src/panels/messaging_relays.rs +++ b/crates/coop/src/panels/messaging_relays.rs @@ -338,7 +338,7 @@ impl Render for MessagingRelayPanel { div() .italic() .text_xs() - .text_color(cx.theme().danger_active) + .text_color(cx.theme().text_danger) .child(error.clone()), ) }), diff --git a/crates/coop/src/panels/relay_list.rs b/crates/coop/src/panels/relay_list.rs index a47a338..577eb20 100644 --- a/crates/coop/src/panels/relay_list.rs +++ b/crates/coop/src/panels/relay_list.rs @@ -408,7 +408,7 @@ impl Render for RelayListPanel { div() .italic() .text_xs() - .text_color(cx.theme().danger_active) + .text_color(cx.theme().text_danger) .child(error.clone()), ) }), diff --git a/crates/theme/src/colors.rs b/crates/theme/src/colors.rs index bc84c5b..46915dd 100644 --- a/crates/theme/src/colors.rs +++ b/crates/theme/src/colors.rs @@ -129,7 +129,7 @@ impl ThemeColors { text_placeholder: neutral().light().step_10(), text_accent: brand().light().step_9(), text_danger: danger().light().step_9(), - text_warning: warning().light().step_10(), + text_warning: warning().light().step_9(), icon: neutral().light().step_11(), icon_muted: neutral().light().step_10(), @@ -196,7 +196,7 @@ impl ThemeColors { background: neutral().dark().step_1(), surface_background: neutral().dark().step_2(), elevated_surface_background: neutral().dark().step_3(), - panel_background: gpui::black(), + panel_background: neutral().dark().step_1(), overlay: neutral().dark_alpha().step_3(), title_bar: neutral().dark().step_3(), title_bar_inactive: neutral().dark().step_1(), diff --git a/crates/ui/src/notification.rs b/crates/ui/src/notification.rs index eb6b155..aa88753 100644 --- a/crates/ui/src/notification.rs +++ b/crates/ui/src/notification.rs @@ -29,10 +29,8 @@ impl NotificationKind { fn icon(&self, cx: &App) -> Icon { match self { Self::Info => Icon::new(IconName::Info).text_color(cx.theme().icon), - Self::Warning => Icon::new(IconName::Warning).text_color(cx.theme().warning_foreground), - Self::Success => { - Icon::new(IconName::CheckCircle).text_color(cx.theme().secondary_foreground) - } + Self::Success => Icon::new(IconName::CheckCircle).text_color(cx.theme().icon_accent), + Self::Warning => Icon::new(IconName::Warning).text_color(cx.theme().text_warning), Self::Error => { Icon::new(IconName::CloseCircle).text_color(cx.theme().danger_foreground) } @@ -352,8 +350,8 @@ impl Render for Notification { .child( div() .absolute() - .top_2() - .right_2() + .top(px(6.5)) + .right(px(6.5)) .invisible() .group_hover("", |this| this.visible()) .child(