Skip to content

Commit

Permalink
ui: Space at the bottom of each settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Oct 25, 2023
1 parent 7f852fa commit 5801bbe
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gossip-bin/src/ui/settings/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
} else {
"Enable to show all deleted events, but labeled as deleted"
});

ui.add_space(20.0);
}

fn secs_to_string(secs: u64) -> String {
Expand Down
2 changes: 2 additions & 0 deletions gossip-bin/src/ui/settings/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
let _ = GLOBALS.to_overlord.send(ToOverlordMessage::PruneCache);
}
}

ui.add_space(20.0);
}
2 changes: 2 additions & 0 deletions gossip-bin/src/ui/settings/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
ui.label("Encrypted Private Key scrypt N parameter");
ui.label("(NOTE: changing this will not re-encrypt any existing encrypted private key)");
ui.add(Slider::new(&mut app.settings.log_n, 18..=22).text("logN iteratons"));

ui.add_space(20.0);
}
2 changes: 2 additions & 0 deletions gossip-bin/src/ui/settings/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,6 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
ui.label("How long before event media becomes stale and needs rechecking?");
ui.add(Slider::new(&mut app.settings.media_becomes_stale_hours, 2..=40).text("hours"));
});

ui.add_space(20.0);
}
2 changes: 2 additions & 0 deletions gossip-bin/src/ui/settings/posting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
),
)
.on_hover_text("Takes effect on next relay connection.");

ui.add_space(20.0);
}
2 changes: 2 additions & 0 deletions gossip-bin/src/ui/settings/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, _frame: &mut eframe::Fra

ui.add_space(10.0);
ui.add(Slider::new(&mut app.settings.mouse_acceleration, 0.5..=2.0).text("Mouse Acceleration"));

ui.add_space(20.0);
}

0 comments on commit 5801bbe

Please sign in to comment.