mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 00:11:01 +00:00
New Widgets: Use new Buttons in more places
This commit is contained in:
parent
b6e535424f
commit
31eb195b61
@ -98,7 +98,11 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, ui: &mut Ui) {
|
||||
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
|
||||
ui.add_space(16.0);
|
||||
|
||||
if ui.button("Edit List").clicked() {
|
||||
if widgets::Button::bordered(&app.theme, "Edit List")
|
||||
.small(true)
|
||||
.show(ui)
|
||||
.clicked()
|
||||
{
|
||||
app.set_page(ctx, Page::PeopleList(list));
|
||||
}
|
||||
|
||||
|
@ -2204,13 +2204,19 @@ fn force_login(app: &mut GossipUi, ctx: &Context) {
|
||||
ui.label("In case you cannot login, here is your escape hatch:");
|
||||
if app.delete_confirm {
|
||||
ui.label("Please confirm that you really mean to do this: ");
|
||||
if ui.button("Delete Identity (Yes I'm Sure)").clicked() {
|
||||
if widgets::Button::primary(&app.theme, "Delete Identity (Yes I'm Sure)")
|
||||
.with_danger_hover()
|
||||
.show(ui)
|
||||
.clicked() {
|
||||
let _ = GLOBALS.to_overlord.send(ToOverlordMessage::DeletePriv);
|
||||
app.delete_confirm = false;
|
||||
cancel_login();
|
||||
}
|
||||
} else {
|
||||
if ui.button("Delete Identity (Cannot be undone!)").clicked() {
|
||||
if widgets::Button::primary(&app.theme, "Delete Identity (Cannot be undone!)")
|
||||
.with_danger_hover()
|
||||
.show(ui)
|
||||
.clicked() {
|
||||
app.delete_confirm = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user