add icon for windows (#179)
This commit is contained in:
parent
6292459f8b
commit
6820da889c
BIN
data/gopher64.png
Normal file
BIN
data/gopher64.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 164 KiB |
@ -170,7 +170,12 @@ async fn main() {
|
||||
}
|
||||
} else {
|
||||
let options = eframe::NativeOptions {
|
||||
viewport: eframe::egui::ViewportBuilder::default().with_inner_size([640.0, 480.0]),
|
||||
viewport: eframe::egui::ViewportBuilder::default()
|
||||
.with_inner_size([640.0, 480.0])
|
||||
.with_icon(
|
||||
eframe::icon_data::from_png_bytes(include_bytes!("../data/gopher64.png"))
|
||||
.unwrap(),
|
||||
),
|
||||
..Default::default()
|
||||
};
|
||||
eframe::run_native(
|
||||
|
||||
Reference in New Issue
Block a user