mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +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 crate::GLOBALS;
|
||||||
use eframe::egui;
|
use eframe::egui;
|
||||||
use egui::widgets::{Button, Slider};
|
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) {
|
pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Frame, ui: &mut Ui) {
|
||||||
ui.heading("Settings");
|
ui.heading("Settings");
|
||||||
|
|
||||||
|
ScrollArea::vertical().show(ui, |ui| {
|
||||||
ui.add_space(12.0);
|
ui.add_space(12.0);
|
||||||
ui.separator();
|
ui.separator();
|
||||||
ui.add_space(12.0);
|
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);
|
let _ = GLOBALS.to_overlord.send(ToOverlordMessage::SaveSettings);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn secs_to_string(secs: u64) -> String {
|
fn secs_to_string(secs: u64) -> String {
|
||||||
|
Loading…
Reference in New Issue
Block a user