mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Add module special_emojis with apple, linux, windows & github logos
This commit is contained in:
@@ -99,10 +99,18 @@ impl DemoWindows {
|
||||
ui.separator();
|
||||
|
||||
ScrollArea::auto_sized().show(ui, |ui| {
|
||||
ui.label("egui is an immediate mode GUI library written in Rust.");
|
||||
ui.hyperlink_to(" egui home page", "https://github.com/emilk/egui");
|
||||
use egui::special_emojis::{GITHUB, OS_APPLE, OS_LINUX, OS_WINDOWS};
|
||||
|
||||
ui.label("egui can be run on the web, or natively on 🐧");
|
||||
ui.label("egui is an immediate mode GUI library written in Rust.");
|
||||
ui.hyperlink_to(
|
||||
format!("{} egui home page", GITHUB),
|
||||
"https://github.com/emilk/egui",
|
||||
);
|
||||
|
||||
ui.label(format!(
|
||||
"egui can be run on the web, or natively on {}{}{}",
|
||||
OS_APPLE, OS_LINUX, OS_WINDOWS,
|
||||
));
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
@@ -95,7 +95,11 @@ impl WidgetGallery {
|
||||
ui.end_row();
|
||||
|
||||
ui.add(doc_link_label("Hyperlink", "Hyperlink"));
|
||||
ui.hyperlink_to(" egui home page", "https://github.com/emilk/egui");
|
||||
use egui::special_emojis::GITHUB;
|
||||
ui.hyperlink_to(
|
||||
format!("{} egui home page", GITHUB),
|
||||
"https://github.com/emilk/egui",
|
||||
);
|
||||
ui.end_row();
|
||||
|
||||
ui.add(doc_link_label("TextEdit", "TextEdit,text_edit"));
|
||||
|
||||
Reference in New Issue
Block a user