DioxusLabs / DioxusLabs/dioxus
Customize Android splash screen (when opening the app)
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
I don't like that even though I can make my Dioxus app look dark, the splash screen is white. I'm pretty sure the dark splash screen can be made starting at least from Android 9/10, but there is a "new" way of doing it, which is more customizable: https://developer.android.com/develop/ui/views/launch/splash-screen.
> Starting in Android 12, the [`SplashScreen`](https://developer.android.com/reference/android/window/SplashScreen) API lets apps launch with animation, including an into-app motion at launch, a splash screen showing your app icon, and a transition to your app itself. A SplashScreen is a [`Window`](https://developer.android.com/reference/android/view/Window) and therefore covers an [`Activity`](https://developer.android.com/reference/android/app/Activity).
https://developer.android.com/develop/ui/views/launch/splash-screen/migrate#library
> You can use the `SplashScreen` API directly, but we strongly recommend using the [Androidx `SplashScreen` compat library](https://developer.android.com/reference/kotlin/androidx/core/splashscreen/SplashScreen) instead. The compat library uses the `SplashScreen` API, enables backward-compatibility, and creates a consistent look and feel for splash screen display across all Android versions. This document is written using the compat library.
>
> If you migrate using the `SplashScreen` API directly, on Android 11 and earlier your splash screen looks exactly the same as before the migration. Starting on Android 12, the splash screen has the Android 12 look and feel.
>
> If you migrate using the `SplashScreen` compat library, the system displays the same splash screen on all versions of Android.
## Implement Suggestion
I think this is an upstream issue. Does Dioxus implement its own abstraction over Tauri to construct a custom desktop app?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.