question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different SplashScreen for Light and Dark Modes

See original GitHub issue

Description

Hi,

It will be great if we will be able to set a different ResourceDictionary for the Splash Screen when light and Dark…

Public API Changes

#if AppTheme is Light
<MauiSplashScreen Include="Resources\Splash\splash_light.svg" Color="#FFFFFF" BaseSize="128,128" />

#if AppTheme is Dark
<MauiSplashScreen Include="Resources\Splash\splash_dark.svg" Color="#000000" BaseSize="128,128" />

Intended Use-Case

To set the AppTheme’s Splash Screen

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:15
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
danielftzcommented, Dec 16, 2022

I would also like to see this. The splashscreen on Android especailly still needs some work

2reactions
Cybrosyscommented, Sep 6, 2022

I would also like to request the ability to specify different splash screens depending on the theme itself. The reason behind this is that we do different brandings for the same app depending on the end customer.

We currently read a setting value indicating which theme that should be used, and on iOS change the image path in the storyboard and on Android change the splash activity theme used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Different SplashScreen for Light and Dark Modes
I have the following splash_light.svg in my MAUI app and I want to ask how can I have a different splash screen for...
Read more >
Splash screens for dark and light mode in Flutter | by Suragch
This article will guide Flutter developers through setting up a custom splash screen for dark and light modes on both iOS and Android...
Read more >
Automatically Choosing Android Splash Screen for Light and ...
A friend reached out today and asked “Hey, I need my splash screen to be themed based on whether Dark Mode is selected...
Read more >
How to place the Splash screen for Dark and Light mode in ...
Make your dark mode splash screen your default. ... TLDR; Add a separate drawable folder under a resource directory called drawable-night .
Read more >
Splash Screen in Android
There are now many different styles of splash screens with numerous ... To adapt the theme to the user's device's dark mode or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found