Skip to content

splashscreen not showing in winui#4909

Merged
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
splashscreen-Issue
Jun 10, 2026
Merged

splashscreen not showing in winui#4909
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
splashscreen-Issue

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request improves how splash images are loaded and ensures they are correctly included in published builds. The most important changes are:

Splash image loading improvements:

  • Updated ApplySplashImage() in MainWindow.xaml.cs to load splash images directly from the executable directory, reading the image bytes and decoding from a stream to work around limitations with URI loading and theme qualifiers.

Build and deployment fixes:

  • Modified UniGetUI.csproj to explicitly include SplashScreen.png and SplashScreen.theme-dark.png in the publish output, ensuring the splash image appears in installed (unpackaged) apps.

WinUI3 BitmapImage cannot load file:// URIs, so the previous absolute-path
fix rendered blank in both themes. Open the themed PNG and decode it via
BitmapImage.SetSource instead, which works for installed (release) builds
regardless of MRT/PRI resolution.
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit aa2073c into main Jun 10, 2026
11 of 12 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the splashscreen-Issue branch June 10, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants