From 5e7dcdf2dfc123d4ee3bbe2f06a6b75084cf6533 Mon Sep 17 00:00:00 2001 From: reya Date: Sat, 28 Feb 2026 08:49:35 +0700 Subject: [PATCH] fix --- crates/coop/src/panels/contact_list.rs | 2 +- crates/coop/src/panels/encryption_key.rs | 40 ++++++++++------------ crates/coop/src/panels/messaging_relays.rs | 2 +- crates/coop/src/panels/relay_list.rs | 2 +- 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/crates/coop/src/panels/contact_list.rs b/crates/coop/src/panels/contact_list.rs index c80da7b..addbb82 100644 --- a/crates/coop/src/panels/contact_list.rs +++ b/crates/coop/src/panels/contact_list.rs @@ -333,7 +333,7 @@ impl Render for ContactListPanel { div() .italic() .text_xs() - .text_color(cx.theme().danger_foreground) + .text_color(cx.theme().danger_active) .child(error.clone()), ) }), diff --git a/crates/coop/src/panels/encryption_key.rs b/crates/coop/src/panels/encryption_key.rs index 4584a63..9e0920e 100644 --- a/crates/coop/src/panels/encryption_key.rs +++ b/crates/coop/src/panels/encryption_key.rs @@ -269,26 +269,24 @@ impl Render for EncryptionPanel { )), ) }) - .when(state.set(), |this| { - this.child( - v_flex() - .gap_1() - .child( - Button::new("reset") - .icon(IconName::Reset) - .label("Reset") - .warning() - .small() - .font_semibold(), - ) - .child( - div() - .italic() - .text_size(px(10.)) - .text_color(cx.theme().text_muted) - .child(SharedString::from(NOTICE)), - ), - ) - }) + .child( + v_flex() + .gap_1() + .child( + Button::new("reset") + .icon(IconName::Reset) + .label("Reset") + .warning() + .small() + .font_semibold(), + ) + .child( + div() + .italic() + .text_size(px(10.)) + .text_color(cx.theme().text_muted) + .child(SharedString::from(NOTICE)), + ), + ) } } diff --git a/crates/coop/src/panels/messaging_relays.rs b/crates/coop/src/panels/messaging_relays.rs index ad88825..47d46b2 100644 --- a/crates/coop/src/panels/messaging_relays.rs +++ b/crates/coop/src/panels/messaging_relays.rs @@ -349,7 +349,7 @@ impl Render for MessagingRelayPanel { div() .italic() .text_xs() - .text_color(cx.theme().danger_foreground) + .text_color(cx.theme().danger_active) .child(error.clone()), ) }), diff --git a/crates/coop/src/panels/relay_list.rs b/crates/coop/src/panels/relay_list.rs index e2709d5..7aa283f 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_foreground) + .text_color(cx.theme().danger_active) .child(error.clone()), ) }),