[demo] Center the "(source code)" hyperlinks
This commit is contained in:
parent
f3b011a8cd
commit
5e7ad40c8d
7 changed files with 21 additions and 9 deletions
|
@ -63,6 +63,8 @@ impl super::View for DancingStrings {
|
||||||
|
|
||||||
ui.painter().extend(shapes);
|
ui.painter().extend(shapes);
|
||||||
});
|
});
|
||||||
|
ui.vertical_centered(|ui| {
|
||||||
ui.add(crate::__egui_github_link_file!());
|
ui.add(crate::__egui_github_link_file!());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,6 +151,8 @@ impl super::View for DragAndDropDemo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui.vertical_centered(|ui| {
|
||||||
ui.add(crate::__egui_github_link_file!());
|
ui.add(crate::__egui_github_link_file!());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,9 @@ impl super::Demo for Painting {
|
||||||
|
|
||||||
impl super::View for Painting {
|
impl super::View for Painting {
|
||||||
fn ui(&mut self, ui: &mut Ui) {
|
fn ui(&mut self, ui: &mut Ui) {
|
||||||
|
ui.vertical_centered(|ui| {
|
||||||
ui.add(crate::__egui_github_link_file!());
|
ui.add(crate::__egui_github_link_file!());
|
||||||
|
});
|
||||||
self.ui_control(ui);
|
self.ui_control(ui);
|
||||||
ui.label("Paint with your mouse/touch!");
|
ui.label("Paint with your mouse/touch!");
|
||||||
Frame::dark_canvas(ui.style()).show(ui, |ui| {
|
Frame::dark_canvas(ui.style()).show(ui, |ui| {
|
||||||
|
|
|
@ -44,6 +44,8 @@ impl super::View for Tests {
|
||||||
let _ = ui.button("Button");
|
let _ = ui.button("Button");
|
||||||
let _ = ui.button("Button");
|
let _ = ui.button("Button");
|
||||||
|
|
||||||
|
ui.vertical_centered(|ui| {
|
||||||
ui.add(crate::__egui_github_link_file!());
|
ui.add(crate::__egui_github_link_file!());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,6 +128,8 @@ impl super::View for WidgetGallery {
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ui.vertical_centered(|ui| {
|
||||||
ui.add(crate::__egui_github_link_file!());
|
ui.add(crate::__egui_github_link_file!());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,9 @@ impl Default for Widgets {
|
||||||
|
|
||||||
impl Widgets {
|
impl Widgets {
|
||||||
pub fn ui(&mut self, ui: &mut Ui) {
|
pub fn ui(&mut self, ui: &mut Ui) {
|
||||||
|
ui.vertical_centered(|ui| {
|
||||||
ui.add(crate::__egui_github_link_file_line!());
|
ui.add(crate::__egui_github_link_file_line!());
|
||||||
|
});
|
||||||
|
|
||||||
ui.horizontal_wrapped_for_text(TextStyle::Body, |ui| {
|
ui.horizontal_wrapped_for_text(TextStyle::Body, |ui| {
|
||||||
ui.add(Label::new("Text can have").text_color(Color32::from_rgb(110, 255, 110)));
|
ui.add(Label::new("Text can have").text_color(Color32::from_rgb(110, 255, 110)));
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
use crate::__egui_github_link_file;
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq)]
|
#[derive(Clone, PartialEq)]
|
||||||
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
|
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
|
||||||
pub struct WindowOptions {
|
pub struct WindowOptions {
|
||||||
|
@ -76,6 +74,8 @@ impl super::View for WindowOptions {
|
||||||
ui.checkbox(collapsible, "collapsible");
|
ui.checkbox(collapsible, "collapsible");
|
||||||
ui.checkbox(resizable, "resizable");
|
ui.checkbox(resizable, "resizable");
|
||||||
ui.checkbox(scroll, "scroll");
|
ui.checkbox(scroll, "scroll");
|
||||||
ui.add(__egui_github_link_file!());
|
ui.vertical_centered(|ui| {
|
||||||
|
ui.add(crate::__egui_github_link_file!());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue