feat: 添加启动屏幕图像和主题样式;优化 H5 壳的封面隐藏逻辑

This commit is contained in:
Booker
2026-05-26 22:48:47 +07:00
parent bd3ccf7f2d
commit bb720b227e
12 changed files with 93 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@@ -9,4 +9,12 @@
android:endColor="#FFFFFF" />
</shape>
</item>
<item
android:width="220dp"
android:height="260dp"
android:gravity="center">
<bitmap
android:gravity="fill"
android:src="@drawable/splash_content" />
</item>
</layer-list>

View File

@@ -9,4 +9,12 @@
android:endColor="#FFFFFF" />
</shape>
</item>
<item
android:width="220dp"
android:height="260dp"
android:gravity="center">
<bitmap
android:gravity="fill"
android:src="@drawable/splash_content" />
</item>
</layer-list>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowSplashScreenBackground">#F8FBFF</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_android12_icon</item>
<item name="android:windowSplashScreenIconBackgroundColor">#F8FBFF</item>
</style>
<style name="NormalTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
@@ -12,7 +12,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowSplashScreenBackground">#F8FBFF</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_android12_icon</item>
<item name="android:windowSplashScreenIconBackgroundColor">#F8FBFF</item>
</style>
<style name="NormalTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>