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:
@@ -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 🐧");
|
||||
|
||||
|
||||
@@ -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/",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user