feat: add contact list panel #10
@@ -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()),
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -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)),
|
),
|
||||||
),
|
)
|
||||||
)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()),
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -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()),
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user