1
0
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:
Emil Ernerfeldt
2021-02-20 16:07:42 +01:00
parent 9b58d5d4d9
commit 4e041185f1
3 changed files with 56 additions and 4 deletions

View File

@@ -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();

View File

@@ -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"));