1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

[demo] Center the "(source code)" hyperlinks

This commit is contained in:
Emil Ernerfeldt
2021-01-11 23:50:50 +01:00
parent f3b011a8cd
commit 5e7ad40c8d
7 changed files with 21 additions and 9 deletions

View File

@@ -1,5 +1,3 @@
use crate::__egui_github_link_file;
#[derive(Clone, PartialEq)]
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
pub struct WindowOptions {
@@ -76,6 +74,8 @@ impl super::View for WindowOptions {
ui.checkbox(collapsible, "collapsible");
ui.checkbox(resizable, "resizable");
ui.checkbox(scroll, "scroll");
ui.add(__egui_github_link_file!());
ui.vertical_centered(|ui| {
ui.add(crate::__egui_github_link_file!());
});
}
}