diff --git a/images/stremio.png b/images/stremio.png new file mode 100644 index 0000000..e23064e Binary files /dev/null and b/images/stremio.png differ diff --git a/images/stremio_splash.ico b/images/stremio_splash.ico deleted file mode 100644 index 8906ce7..0000000 Binary files a/images/stremio_splash.ico and /dev/null differ diff --git a/resources.rc b/resources.rc index c71f64e..16a9977 100644 --- a/resources.rc +++ b/resources.rc @@ -1,3 +1,3 @@ #define RT_MANIFEST 24 MAINICON ICON "images/stremio.ico" -SPLASHIMAGE ICON "images/stremio_splash.ico" \ No newline at end of file +SPLASHIMAGE IMAGE "images/stremio.png" \ No newline at end of file diff --git a/src/stremio_app/stremio_app.rs b/src/stremio_app/stremio_app.rs index dfa97ff..21c367e 100644 --- a/src/stremio_app/stremio_app.rs +++ b/src/stremio_app/stremio_app.rs @@ -56,10 +56,10 @@ pub struct MainWindow { #[nwg_partial(parent: window)] pub player: Player, #[nwg_resource(size: Some((300,300)), source_embed: Some(&data.embed), source_embed_str: Some("SPLASHIMAGE"))] - pub splash_image: nwg::Icon, + pub splash_image: nwg::Bitmap, #[nwg_control(parent: window, background_color: Some(Self::BG_COLOR))] pub splash_frame: nwg::ImageFrame, - #[nwg_control(parent: splash_frame, background_color: Some(Self::BG_COLOR), icon: Some(&data.splash_image))] + #[nwg_control(parent: splash_frame, background_color: Some(Self::BG_COLOR), bitmap: Some(&data.splash_image))] pub splash: nwg::ImageFrame, #[nwg_control] #[nwg_events(OnNotice: [Self::on_toggle_fullscreen_notice] )]