Skip to content

Commit

Permalink
๐Ÿ˜(UI): refactor UI layout in Vector Graphics Visualizer
Browse files Browse the repository at this point in the history
The UI layout in the 'app.rs' file has been refactored to render the version, web version link, and GitHub link horizontally. This change provides a more streamlined interface for users.

Signed-off-by: Benign X <[email protected]>
  • Loading branch information
W-Mai committed Nov 21, 2023
1 parent f74c49f commit e6aac3f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,14 @@ impl MainApp {
ui.heading("Vector Graphics Visualizer");
ui.separator();
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
ui.label(format!("Version: {VERSION}"));
ui.hyperlink_to("๐ŸŒWeb Version", "https://w-mai.github.io/vegravis/");
ui.hyperlink_to(
format!("{GITHUB} vegravis on GitHub"),
env!("CARGO_PKG_HOMEPAGE"),
);
ui.horizontal_wrapped(|ui| {
ui.label(format!("Version: {VERSION}"));
ui.hyperlink_to("๐ŸŒWeb Version", "https://w-mai.github.io/vegravis/");
ui.hyperlink_to(
format!("{GITHUB} vegravis on GitHub"),
env!("CARGO_PKG_HOMEPAGE"),
);
});
});
});
}
Expand Down

0 comments on commit e6aac3f

Please sign in to comment.