mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 11:43:43 +00:00
Put settings in a scroll area
This commit is contained in:
parent
8703bbbf19
commit
cdf402c6b5
@ -3,11 +3,12 @@ use crate::comms::ToOverlordMessage;
|
||||
use crate::GLOBALS;
|
||||
use eframe::egui;
|
||||
use egui::widgets::{Button, Slider};
|
||||
use egui::{Align, Context, Layout, Ui};
|
||||
use egui::{Align, Context, Layout, ScrollArea, Ui};
|
||||
|
||||
pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Frame, ui: &mut Ui) {
|
||||
ui.heading("Settings");
|
||||
|
||||
ScrollArea::vertical().show(ui, |ui| {
|
||||
ui.add_space(12.0);
|
||||
ui.separator();
|
||||
ui.add_space(12.0);
|
||||
@ -185,6 +186,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
|
||||
let _ = GLOBALS.to_overlord.send(ToOverlordMessage::SaveSettings);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
fn secs_to_string(secs: u64) -> String {
|
||||
|
Loading…
Reference in New Issue
Block a user