Skip to content

Commit

Permalink
Add icon to gui
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Oct 15, 2024
1 parent 4c2a01f commit d6b1bba
Show file tree
Hide file tree
Showing 2 changed files with 6 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.
7 changes: 6 additions & 1 deletion anise-gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ 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 d6b1bba

Please sign in to comment.