redo links in about stage a bit
This commit is contained in:
+6
-12
@@ -228,28 +228,22 @@ impl App {
|
|||||||
ui.spacing_mut().item_spacing.x = 0.0;
|
ui.spacing_mut().item_spacing.x = 0.0;
|
||||||
ui.label("with ");
|
ui.label("with ");
|
||||||
ui.scope(|ui| {
|
ui.scope(|ui| {
|
||||||
ui.style_mut().visuals.hyperlink_color = colours::RED;
|
ui.style_mut().visuals.override_text_color = Some(colours::RED);
|
||||||
ui.hyperlink_to("❤", "https://github.com/elituf/gta-tools");
|
ui.label("❤");
|
||||||
});
|
});
|
||||||
ui.label(" from ");
|
ui.label(" from ");
|
||||||
ui.hyperlink_to("futile", "https://futile.eu");
|
ui.hyperlink_to("futile", "https://futile.eu");
|
||||||
});
|
});
|
||||||
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
|
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
|
||||||
|
ui.style_mut().spacing.button_padding = egui::Vec2::new(4.0, 0.0);
|
||||||
|
if ui.button("").on_hover_text("View source code").clicked() {
|
||||||
|
open::that("https://github.com/elituf/gta-tools").unwrap();
|
||||||
|
}
|
||||||
if cfg!(debug_assertions) {
|
if cfg!(debug_assertions) {
|
||||||
ui.label("(dev)");
|
ui.label("(dev)");
|
||||||
}
|
}
|
||||||
ui.label(format!("v{}", env!("CARGO_PKG_VERSION")))
|
ui.label(format!("v{}", env!("CARGO_PKG_VERSION")))
|
||||||
.on_hover_text(env!("LATEST_GIT_COMMIT_HASH"));
|
.on_hover_text(env!("LATEST_GIT_COMMIT_HASH"));
|
||||||
ui.scope(|ui| {
|
|
||||||
ui.style_mut().spacing.button_padding = egui::Vec2::new(3.0, 0.0);
|
|
||||||
let button = ui
|
|
||||||
.button("⬇")
|
|
||||||
.on_hover_text("Go to current latest version.");
|
|
||||||
if button.clicked() {
|
|
||||||
open::that("https://github.com/elituf/gta-tools/releases/latest")
|
|
||||||
.unwrap();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
ui.add(egui::Image::new(egui::include_image!(
|
ui.add(egui::Image::new(egui::include_image!(
|
||||||
|
|||||||
Reference in New Issue
Block a user