Put settings in a scroll area

This commit is contained in:
Mike Dilger 2023-01-16 20:36:13 +13:00
parent 8703bbbf19
commit cdf402c6b5

View File

@ -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 {