UI improvements

This commit is contained in:
Simon Gardling 2022-02-24 22:32:41 -05:00
parent 8b53c7046b
commit 0ab9c6d17b

View File

@ -162,15 +162,18 @@ impl epi::App for MathApp {
} }
ui.add(egui::Slider::new(num_interval, NUM_INTERVAL_RANGE).text("Interval")); ui.add(egui::Slider::new(num_interval, NUM_INTERVAL_RANGE).text("Interval"));
// ui.add_space(ui.text_style_height(&TextStyle::Body)*10.0);
// Opensource and Licensing information
ui.horizontal(|ui| {
ui.hyperlink_to( ui.hyperlink_to(
"I'm Opensource! (and licensed under AGPLv3)", "I'm Opensource!",
"https://github.com/Titaniumtown/integral_site", "https://github.com/Titaniumtown/integral_site",
); );
ui.label("(and licensed under AGPLv3)").on_hover_text("The AGPL license ensures that the end user, even if not hosting the program itself, still is guaranteed access to the source code of the project in question.");
});
// Displays commit info // Displays commit info
ui.horizontal(|ui| { ui.horizontal(|ui| {
ui.with_layout(egui::Layout::top_down_justified(egui::Align::Min), |ui| {
ui.label("Commit: "); ui.label("Commit: ");
// Only include hyperlink if the build doesn't have untracked files // Only include hyperlink if the build doesn't have untracked files
@ -187,7 +190,6 @@ impl epi::App for MathApp {
} }
}); });
}); });
});
if parse_error.is_empty() { if parse_error.is_empty() {
let do_update = let do_update =