chore(splash): use app logo on icon background for native + flutter splash
Replace splash_chat_hebat with assets/icons/logo.png on @color/ic_launcher_background (customer #FF699F pink, mitra #FFFFFF white) across launch_background.xml (x2) and values-v31/styles.xml in both apps; copy logo.png into res/drawable. The mitra Flutter /splash screen still showed the old image — repoint it to assets/icons/logo.png (add assets/icons/ to mitra pubspec), keeping the route (it is the auth-loading gate). Native + flutter splash now match the launcher icon. Old splash_chat_hebat.png left in place but unused. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
<!-- Same background as the launcher icon (ic_launcher_background = #FFFFFF
|
||||
for the mitra full-color logo), so the native launch splash matches. -->
|
||||
<item android:drawable="@color/ic_launcher_background" />
|
||||
<!-- Square box (logo.png is 4500x4500) so the glyph isn't distorted. -->
|
||||
<item
|
||||
android:width="200dp"
|
||||
android:height="168dp"
|
||||
android:height="200dp"
|
||||
android:gravity="center">
|
||||
<bitmap
|
||||
android:gravity="fill"
|
||||
android:src="@drawable/splash_chat_hebat" />
|
||||
android:src="@drawable/logo" />
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
<!-- Same background as the launcher icon (ic_launcher_background = #FFFFFF
|
||||
for the mitra full-color logo), so the native launch splash matches. -->
|
||||
<item android:drawable="@color/ic_launcher_background" />
|
||||
<!-- Square box (logo.png is 4500x4500) so the glyph isn't distorted. -->
|
||||
<item
|
||||
android:width="200dp"
|
||||
android:height="168dp"
|
||||
android:height="200dp"
|
||||
android:gravity="center">
|
||||
<bitmap
|
||||
android:gravity="fill"
|
||||
android:src="@drawable/splash_chat_hebat" />
|
||||
android:src="@drawable/logo" />
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
BIN
mitra_app/android/app/src/main/res/drawable/logo.png
Executable file
BIN
mitra_app/android/app/src/main/res/drawable/logo.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 288 KiB |
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowSplashScreenBackground">@android:color/white</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_chat_hebat</item>
|
||||
<item name="android:windowSplashScreenBackground">@color/ic_launcher_background</item>
|
||||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/logo</item>
|
||||
</style>
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
|
||||
Reference in New Issue
Block a user