feat(android): branded app icon + native splash screen (Phase 28.8 polish)
This commit is contained in:
@@ -20,7 +20,8 @@
|
|||||||
android:name=".YarisApp"
|
android:name=".YarisApp"
|
||||||
android:allowBackup="false"
|
android:allowBackup="false"
|
||||||
android:fullBackupOnly="false"
|
android:fullBackupOnly="false"
|
||||||
android:icon="@android:mipmap/sym_def_app_icon"
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.YarisOBD"
|
android:theme="@style/Theme.YarisOBD"
|
||||||
@@ -30,7 +31,7 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:theme="@style/Theme.YarisOBD">
|
android:theme="@style/Theme.YarisOBD.Splash">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
|||||||
@@ -4,10 +4,20 @@
|
|||||||
android:height="108dp"
|
android:height="108dp"
|
||||||
android:viewportWidth="108"
|
android:viewportWidth="108"
|
||||||
android:viewportHeight="108">
|
android:viewportHeight="108">
|
||||||
|
<!-- Gauge ring -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#4CAF50"
|
android:pathData="M54,54m-24,0a24,24 0 1,1 48,0a24,24 0 1,1 -48,0"
|
||||||
android:pathData="M54,54m-40,0a40,40 0,1 1,80 0a40,40 0,1 1,-80 0"/>
|
android:strokeColor="#FFFFFF"
|
||||||
|
android:strokeWidth="6"
|
||||||
|
android:fillColor="#00000000" />
|
||||||
|
<!-- Needle -->
|
||||||
<path
|
<path
|
||||||
android:fillColor="#121212"
|
android:pathData="M54,54L72,38"
|
||||||
android:pathData="M40,45 L68,54 L40,63 Z"/>
|
android:strokeColor="#FFFFFF"
|
||||||
|
android:strokeWidth="6"
|
||||||
|
android:strokeLineCap="round" />
|
||||||
|
<!-- Hub -->
|
||||||
|
<path
|
||||||
|
android:pathData="M54,54m-4,0a4,4 0 1,1 8,0a4,4 0 1,1 -8,0"
|
||||||
|
android:fillColor="#FFFFFF" />
|
||||||
</vector>
|
</vector>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@color/ic_launcher_background"/>
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
<foreground android:drawable="@color/ic_launcher_foreground"/>
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- API 31+ native splash: dark background + white gauge icon. -->
|
||||||
|
<style name="Theme.YarisOBD.Splash" parent="Theme.YarisOBD">
|
||||||
|
<item name="android:windowSplashScreenBackground">#1C1C1E</item>
|
||||||
|
<item name="android:windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
|
||||||
|
<item name="android:windowSplashScreenIconBackgroundColor">#1C1C1E</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="ic_launcher_background">#121212</color>
|
<color name="ic_launcher_background">#E63946</color>
|
||||||
<color name="ic_launcher_foreground">#4CAF50</color>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">yaris-obd</string>
|
<string name="app_name">Yaris OBD</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -4,4 +4,7 @@
|
|||||||
<item name="android:statusBarColor">@android:color/black</item>
|
<item name="android:statusBarColor">@android:color/black</item>
|
||||||
<item name="android:navigationBarColor">@android:color/black</item>
|
<item name="android:navigationBarColor">@android:color/black</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Pre-31 fallback: identical to the normal theme (no native splash). -->
|
||||||
|
<style name="Theme.YarisOBD.Splash" parent="Theme.YarisOBD" />
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user