feat: add contact list panel #10

Merged
reya merged 4 commits from feat/contact-list into master 2026-02-28 01:50:34 +00:00
4 changed files with 22 additions and 24 deletions
Showing only changes of commit 5e7dcdf2df - Show all commits

View File

@@ -333,7 +333,7 @@ impl Render for ContactListPanel {
div() div()
.italic() .italic()
.text_xs() .text_xs()
.text_color(cx.theme().danger_foreground) .text_color(cx.theme().danger_active)
.child(error.clone()), .child(error.clone()),
) )
}), }),

View File

@@ -269,26 +269,24 @@ impl Render for EncryptionPanel {
)), )),
) )
}) })
.when(state.set(), |this| { .child(
this.child( v_flex()
v_flex() .gap_1()
.gap_1() .child(
.child( Button::new("reset")
Button::new("reset") .icon(IconName::Reset)
.icon(IconName::Reset) .label("Reset")
.label("Reset") .warning()
.warning() .small()
.small() .font_semibold(),
.font_semibold(), )
) .child(
.child( div()
div() .italic()
.italic() .text_size(px(10.))
.text_size(px(10.)) .text_color(cx.theme().text_muted)
.text_color(cx.theme().text_muted) .child(SharedString::from(NOTICE)),
.child(SharedString::from(NOTICE)), ),
), )
)
})
} }
} }

View File

@@ -349,7 +349,7 @@ impl Render for MessagingRelayPanel {
div() div()
.italic() .italic()
.text_xs() .text_xs()
.text_color(cx.theme().danger_foreground) .text_color(cx.theme().danger_active)
.child(error.clone()), .child(error.clone()),
) )
}), }),

View File

@@ -408,7 +408,7 @@ impl Render for RelayListPanel {
div() div()
.italic() .italic()
.text_xs() .text_xs()
.text_color(cx.theme().danger_foreground) .text_color(cx.theme().danger_active)
.child(error.clone()), .child(error.clone()),
) )
}), }),