From e2a779b7f5563d1bf55f79349f417c850315b6a3 Mon Sep 17 00:00:00 2001 From: futile Date: Fri, 7 Nov 2025 11:35:56 +0000 Subject: [PATCH] redo links in about stage a bit --- src/gui/app.rs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index 16c9162..271f3c9 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -228,28 +228,22 @@ impl App { ui.spacing_mut().item_spacing.x = 0.0; ui.label("with "); ui.scope(|ui| { - ui.style_mut().visuals.hyperlink_color = colours::RED; - ui.hyperlink_to("❤", "https://github.com/elituf/gta-tools"); + ui.style_mut().visuals.override_text_color = Some(colours::RED); + ui.label("❤"); }); ui.label(" from "); ui.hyperlink_to("futile", "https://futile.eu"); }); 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) { ui.label("(dev)"); } ui.label(format!("v{}", env!("CARGO_PKG_VERSION"))) .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!(