adding in a taskbar icon

This commit is contained in:
Able 2021-06-03 04:18:08 -05:00
parent 55d3bc77a9
commit cb225aca28
2 changed files with 4 additions and 0 deletions

BIN
assets/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -53,6 +53,10 @@ impl App {
.with_size(800, 600) .with_size(800, 600)
.center_screen() .center_screen()
.with_label("AblEditor"); .with_label("AblEditor");
let image = fltk::image::PngImage::load("assets/icon.png").unwrap();
main_win.set_icon(Some(image));
let _menu = menu::Menu::new(&s); let _menu = menu::Menu::new(&s);
let mut frame = fltk::frame::Frame::default(); let mut frame = fltk::frame::Frame::default();