Feature/better splash#6
Merged
Merged
Conversation
Introduce a coordinated splash-screen system between MAUI and Blazor. Added ISplashService to Core.Interfaces and a concrete SplashService implementation (Services/SplashService.cs) and registered it as a singleton in MauiProgram. App now receives IServiceProvider and passes the ISplashService to MainPage. MainLayout.razor notifies the splash service when Blazor first renders. MainPage builds a layered Grid with a new splash overlay (logo, title, subtitle, loading indicator, gradient) and listens for the OnBlazorReady event to fade and hide the overlay; a 15-second safety timeout is also added. Included new logo asset (Resources/Images/sherpalogo.png) and removed the default "Loading..." text from wwwroot/index.html.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new coordinated splash screen system that synchronizes the splash experience between the MAUI and Blazor layers of the application. The splash overlay is now implemented natively in MAUI, and its visibility is controlled via a shared service that signals when Blazor is ready. This replaces the previous HTML/CSS/JS-based splash screen, resulting in a more seamless and robust user experience.
Splash Screen Coordination and Implementation:
ISplashServiceinterface and its implementationSplashServiceto facilitate communication between MAUI and Blazor regarding splash screen visibility. This service tracks Blazor readiness and exposes an event for MAUI to react accordingly. (src/MauiSherpa.Core/Interfaces.cs[1]src/MauiSherpa/Services/SplashService.cs[2]src/MauiSherpa/MauiProgram.cs[3]MainPageto display a native MAUI splash overlay layered above the BlazorWebView. The overlay features branding, a loading indicator, and fade-out animation. It is hidden either when Blazor signals readiness or after a 15-second timeout. (src/MauiSherpa/MainPage.cs[1] [2]src/MauiSherpa/App.cssrc/MauiSherpa/App.csR1-R20)Blazor Integration:
MainLayout.razorto notify the splash service when Blazor rendering is complete, triggering the splash overlay to hide. (src/MauiSherpa/Components/MainLayout.razor[1] [2]Removal of Old Splash Implementation:
index.html, including its styling and JavaScript logic, as it is now fully handled natively in MAUI. (src/MauiSherpa/wwwroot/index.html[1] [2]