mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-03-11 17:15:49 +00:00
Use image instead of icon for the splash screen
This commit is contained in:
parent
f303b094aa
commit
ce2d387ac9
4 changed files with 3 additions and 3 deletions
BIN
images/stremio.png
Normal file
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 |
|
|
@ -1,3 +1,3 @@
|
|||
#define RT_MANIFEST 24
|
||||
MAINICON ICON "images/stremio.ico"
|
||||
SPLASHIMAGE ICON "images/stremio_splash.ico"
|
||||
SPLASHIMAGE IMAGE "images/stremio.png"
|
||||
|
|
@ -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] )]
|
||||
|
|
|
|||
Loading…
Reference in a new issue