-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ruben Kharel
committed
May 7, 2024
1 parent
369123f
commit ec21365
Showing
6 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
pub fn powered_by_egui_and_eframe(ui: &mut egui::Ui) { | ||
ui.with_layout(egui::Layout::bottom_up(egui::Align::LEFT), |ui| { | ||
ui.horizontal(|ui| { | ||
ui.spacing_mut().item_spacing.x = 0.0; | ||
ui.label("Powered by "); | ||
ui.hyperlink_to("egui", "https://github.com/emilk/egui"); | ||
ui.label(", "); | ||
ui.hyperlink_to( | ||
"eframe", | ||
"https://github.com/emilk/egui/tree/master/crates/eframe", | ||
); | ||
ui.label(", "); | ||
ui.hyperlink_to("cloudflare", "https://cloudflare.com"); | ||
ui.label(" and "); | ||
ui.hyperlink_to("github pages", "https://pages.github.com/"); | ||
|
||
ui.label("."); | ||
}); | ||
egui::warn_if_debug_build(ui); | ||
}); | ||
} | ||
|
||
pub fn footer(ui: &mut egui::Ui) { | ||
ui.with_layout(egui::Layout::right_to_left(egui::Align::BOTTOM), |ui| { | ||
ui.horizontal(|ui| { | ||
ui.label("© Ruben Kharel, 2024"); | ||
}); | ||
}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,4 @@ fn main() { | |
.await | ||
.expect("failed to start eframe"); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters