egui_demo_app: add link to my twitter
This commit is contained in:
parent
051deb293f
commit
003dc4aac9
4 changed files with 19 additions and 14 deletions
|
@ -482,6 +482,8 @@ pub mod special_emojis {
|
||||||
|
|
||||||
/// The Github logo.
|
/// The Github logo.
|
||||||
pub const GITHUB: char = '';
|
pub const GITHUB: char = '';
|
||||||
|
/// The Twitter bird.
|
||||||
|
pub const TWITTER: char = '';
|
||||||
|
|
||||||
/// The word `git`.
|
/// The word `git`.
|
||||||
pub const GIT: char = '';
|
pub const GIT: char = '';
|
||||||
|
|
|
@ -231,7 +231,7 @@ impl BackendPanel {
|
||||||
self.frame_history.fps()
|
self.frame_history.fps()
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
ui.label("Only running UI code when there are animations or input");
|
ui.label("Only running UI code when there are animations or input.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,21 +167,24 @@ impl DemoWindows {
|
||||||
ui.separator();
|
ui.separator();
|
||||||
|
|
||||||
ScrollArea::vertical().show(ui, |ui| {
|
ScrollArea::vertical().show(ui, |ui| {
|
||||||
use egui::special_emojis::{GITHUB, OS_APPLE, OS_LINUX, OS_WINDOWS};
|
use egui::special_emojis::{GITHUB, OS_APPLE, OS_LINUX, OS_WINDOWS, TWITTER};
|
||||||
|
|
||||||
ui.vertical_centered(|ui| {
|
ui.label("egui is an immediate mode GUI library written in Rust.");
|
||||||
ui.label("egui is an immediate mode GUI library written in Rust.");
|
|
||||||
|
|
||||||
ui.label(format!(
|
ui.label(format!(
|
||||||
"egui runs on the web, or natively on {}{}{}",
|
"egui runs on the web, or natively on {}{}{}",
|
||||||
OS_APPLE, OS_LINUX, OS_WINDOWS,
|
OS_APPLE, OS_LINUX, OS_WINDOWS,
|
||||||
));
|
));
|
||||||
|
|
||||||
ui.hyperlink_to(
|
ui.hyperlink_to(
|
||||||
format!("{} egui home page", GITHUB),
|
format!("{} egui on GitHub", GITHUB),
|
||||||
"https://github.com/emilk/egui",
|
"https://github.com/emilk/egui",
|
||||||
);
|
);
|
||||||
});
|
|
||||||
|
ui.hyperlink_to(
|
||||||
|
format!("{} @ernerfeldt", TWITTER),
|
||||||
|
"https://twitter.com/ernerfeldt",
|
||||||
|
);
|
||||||
|
|
||||||
ui.separator();
|
ui.separator();
|
||||||
demos.checkboxes(ui);
|
demos.checkboxes(ui);
|
||||||
|
|
|
@ -126,7 +126,7 @@ impl WidgetGallery {
|
||||||
ui.add(doc_link_label("Hyperlink", "Hyperlink"));
|
ui.add(doc_link_label("Hyperlink", "Hyperlink"));
|
||||||
use egui::special_emojis::GITHUB;
|
use egui::special_emojis::GITHUB;
|
||||||
ui.hyperlink_to(
|
ui.hyperlink_to(
|
||||||
format!("{} egui home page", GITHUB),
|
format!("{} egui on GitHub", GITHUB),
|
||||||
"https://github.com/emilk/egui",
|
"https://github.com/emilk/egui",
|
||||||
);
|
);
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
|
|
Loading…
Reference in a new issue