Skip to content

Commit

Permalink
Merge pull request #338 from nyx-space/quickfix/gui-icon
Browse files Browse the repository at this point in the history
Add icon to gui
  • Loading branch information
ChristopherRabotin authored Oct 16, 2024
2 parents 4c2a01f + a572754 commit 228bfe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added anise-gui/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion anise-gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ fn main() {
.expect("Error initializing logger");

let opts = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default().with_inner_size([1024.0, 640.0]),
viewport: egui::ViewportBuilder::default()
.with_inner_size([1024.0, 640.0])
.with_icon(
eframe::icon_data::from_png_bytes(&include_bytes!("../icon-128.png")[..]).unwrap(),
),
..Default::default()
};

Expand Down

0 comments on commit 228bfe6

Please sign in to comment.