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

Add Ui::hyperlink_to

This commit is contained in:
Emil Ernerfeldt
2021-02-20 09:23:38 +01:00
parent 9e38674d13
commit 21c99e1130
4 changed files with 16 additions and 8 deletions

View File

@@ -100,9 +100,7 @@ impl DemoWindows {
ScrollArea::auto_sized().show(ui, |ui| {
ui.label("egui is an immediate mode GUI library written in Rust.");
ui.add(
egui::Hyperlink::new("https://github.com/emilk/egui").text(" egui home page"),
);
ui.hyperlink_to(" egui home page", "https://github.com/emilk/egui");
ui.label("egui can be run on the web, or natively on 🐧");

View File

@@ -93,9 +93,9 @@ impl FractalClock {
egui::reset_button(ui, self);
ui.add(
Hyperlink::new("http://www.dqd.com/~mayoff/programs/FractalClock/")
.text("Inspired by a screensaver by Rob Mayoff"),
ui.hyperlink_to(
"Inspired by a screensaver by Rob Mayoff",
"http://www.dqd.com/~mayoff/programs/FractalClock/",
);
}