Use image instead of icon for the splash screen

This commit is contained in:
Vladimir Borisov 2021-07-21 21:02:12 +03:00
parent cf8ec7c05a
commit da20bf6fb7
No known key found for this signature in database
GPG key ID: F9A584BE4FCB6603
4 changed files with 3 additions and 3 deletions

BIN
images/stremio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View file

@ -1,3 +1,3 @@
#define RT_MANIFEST 24
MAINICON ICON "images/stremio.ico"
SPLASHIMAGE ICON "images/stremio_splash.ico"
SPLASHIMAGE IMAGE "images/stremio.png"

View file

@ -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] )]