Use the Hezarfen logo for the icon and the launch screen
Browse files at this commit3424bc6de6697276c0e99a656c2099ec2e24cc5fParent: 003c39959 changed files +33 -0
- src-tauri/gen/android/app/build.gradle.kts +1 -0
- src-tauri/gen/android/app/src/main/AndroidManifest.xml +1 -0
- src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.kt +4 -0
- src-tauri/gen/android/app/src/main/res/drawable-nodpi/splash_icon.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- src-tauri/gen/android/app/src/main/res/values-night/themes.xml +8 -0
- src-tauri/gen/android/app/src/main/res/values/colors.xml +2 -0
- src-tauri/gen/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- src-tauri/gen/android/app/src/main/res/values/themes.xml +8 -0
- src-tauri/icons/128x128.png +0 -0
- src-tauri/icons/128x128@2x.png +0 -0
- src-tauri/icons/32x32.png +0 -0
- src-tauri/icons/64x64.png +0 -0
- src-tauri/icons/Square107x107Logo.png +0 -0
- src-tauri/icons/Square142x142Logo.png +0 -0
- src-tauri/icons/Square150x150Logo.png +0 -0
- src-tauri/icons/Square284x284Logo.png +0 -0
- src-tauri/icons/Square30x30Logo.png +0 -0
- src-tauri/icons/Square310x310Logo.png +0 -0
- src-tauri/icons/Square44x44Logo.png +0 -0
- src-tauri/icons/Square71x71Logo.png +0 -0
- src-tauri/icons/Square89x89Logo.png +0 -0
- src-tauri/icons/StoreLogo.png +0 -0
- src-tauri/icons/icon.icns +0 -0
- src-tauri/icons/icon.ico +0 -0
- src-tauri/icons/icon.png +0 -0
- src-tauri/icons/ios/AppIcon-20x20@1x.png +0 -0
- src-tauri/icons/ios/AppIcon-20x20@2x-1.png +0 -0
- src-tauri/icons/ios/AppIcon-20x20@2x.png +0 -0
- src-tauri/icons/ios/AppIcon-20x20@3x.png +0 -0
- src-tauri/icons/ios/AppIcon-29x29@1x.png +0 -0
- src-tauri/icons/ios/AppIcon-29x29@2x-1.png +0 -0
- src-tauri/icons/ios/AppIcon-29x29@2x.png +0 -0
- src-tauri/icons/ios/AppIcon-29x29@3x.png +0 -0
- src-tauri/icons/ios/AppIcon-40x40@1x.png +0 -0
- src-tauri/icons/ios/AppIcon-40x40@2x-1.png +0 -0
- src-tauri/icons/ios/AppIcon-40x40@2x.png +0 -0
- src-tauri/icons/ios/AppIcon-40x40@3x.png +0 -0
- src-tauri/icons/ios/AppIcon-512@2x.png +0 -0
- src-tauri/icons/ios/AppIcon-60x60@2x.png +0 -0
- src-tauri/icons/ios/AppIcon-60x60@3x.png +0 -0
- src-tauri/icons/ios/AppIcon-76x76@1x.png +0 -0
- src-tauri/icons/ios/AppIcon-76x76@2x.png +0 -0
- src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png +0 -0
| @@ -59,6 +59,7 @@ rust { | |||
| 59 | 59 | ||
| 60 | dependencies { | 60 | dependencies { |
| 61 | implementation("androidx.webkit:webkit:1.14.0") | 61 | implementation("androidx.webkit:webkit:1.14.0") |
| 62 | + implementation("androidx.core:core-splashscreen:1.0.1") | ||
| 62 | implementation("androidx.appcompat:appcompat:1.7.1") | 63 | implementation("androidx.appcompat:appcompat:1.7.1") |
| 63 | implementation("androidx.activity:activity-ktx:1.10.1") | 64 | implementation("androidx.activity:activity-ktx:1.10.1") |
| 64 | implementation("com.google.android.material:material:1.12.0") | 65 | implementation("com.google.android.material:material:1.12.0") |
| @@ -16,6 +16,7 @@ | |||
| 16 | android:launchMode="singleTask" | 16 | android:launchMode="singleTask" |
| 17 | android:label="@string/main_activity_title" | 17 | android:label="@string/main_activity_title" |
| 18 | android:name=".MainActivity" | 18 | android:name=".MainActivity" |
| 19 | + android:theme="@style/Theme.hezarfen_mobile.Starting" | ||
| 19 | android:exported="true"> | 20 | android:exported="true"> |
| 20 | <intent-filter> | 21 | <intent-filter> |
| 21 | <action android:name="android.intent.action.MAIN" /> | 22 | <action android:name="android.intent.action.MAIN" /> |
| @@ -4,6 +4,7 @@ import android.os.Bundle | |||
| 4 | import android.webkit.JavascriptInterface | 4 | import android.webkit.JavascriptInterface |
| 5 | import android.webkit.WebView | 5 | import android.webkit.WebView |
| 6 | import androidx.activity.enableEdgeToEdge | 6 | import androidx.activity.enableEdgeToEdge |
| 7 | +import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen | ||
| 7 | import androidx.core.view.ViewCompat | 8 | import androidx.core.view.ViewCompat |
| 8 | import androidx.core.view.WindowInsetsCompat | 9 | import androidx.core.view.WindowInsetsCompat |
| 9 | 10 | ||
| @@ -27,6 +28,9 @@ class MainActivity : TauriActivity() { | |||
| 27 | } | 28 | } |
| 28 | 29 | ||
| 29 | override fun onCreate(savedInstanceState: Bundle?) { | 30 | override fun onCreate(savedInstanceState: Bundle?) { |
| 31 | + // Must run before super.onCreate so the system keeps the launch screen up | ||
| 32 | + // instead of flashing the plain window background. | ||
| 33 | + installSplashScreen() | ||
| 30 | enableEdgeToEdge() | 34 | enableEdgeToEdge() |
| 31 | super.onCreate(savedInstanceState) | 35 | super.onCreate(savedInstanceState) |
| 32 | } | 36 | } |
Binary file changed
| @@ -0,0 +1,5 @@ | |||
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
| 4 | + <background android:drawable="@color/ic_launcher_background"/> | ||
| 5 | +</adaptive-icon> | ||
| \ No newline at end of file | \ No newline at end of file | ||
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
| @@ -3,4 +3,12 @@ | |||
| 3 | <style name="Theme.hezarfen_mobile" parent="Theme.MaterialComponents.DayNight.NoActionBar"> | 3 | <style name="Theme.hezarfen_mobile" parent="Theme.MaterialComponents.DayNight.NoActionBar"> |
| 4 | <!-- Customize your theme here. --> | 4 | <!-- Customize your theme here. --> |
| 5 | </style> | 5 | </style> |
| 6 | + | ||
| 7 | + <!-- What the system draws while the webview and the origin server start. | ||
| 8 | + Without it the app opens on a blank white rectangle for a beat. --> | ||
| 9 | + <style name="Theme.hezarfen_mobile.Starting" parent="Theme.SplashScreen"> | ||
| 10 | + <item name="windowSplashScreenBackground">@color/splash_background</item> | ||
| 11 | + <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item> | ||
| 12 | + <item name="postSplashScreenTheme">@style/Theme.hezarfen_mobile</item> | ||
| 13 | + </style> | ||
| 6 | </resources> | 14 | </resources> |
| @@ -7,4 +7,6 @@ | |||
| 7 | <color name="teal_700">#FF018786</color> | 7 | <color name="teal_700">#FF018786</color> |
| 8 | <color name="black">#FF000000</color> | 8 | <color name="black">#FF000000</color> |
| 9 | <color name="white">#FFFFFFFF</color> | 9 | <color name="white">#FFFFFFFF</color> |
| 10 | + <!-- The launch screen behind the logo. --> | ||
| 11 | + <color name="splash_background">#030A1D</color> | ||
| 10 | </resources> | 12 | </resources> |
| \ No newline at end of file | \ No newline at end of file | ||
| @@ -0,0 +1,4 @@ | |||
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<resources> | ||
| 3 | + <color name="ic_launcher_background">#030A1D</color> | ||
| 4 | +</resources> | ||
| \ No newline at end of file | \ No newline at end of file | ||
| @@ -3,4 +3,12 @@ | |||
| 3 | <style name="Theme.hezarfen_mobile" parent="Theme.MaterialComponents.DayNight.NoActionBar"> | 3 | <style name="Theme.hezarfen_mobile" parent="Theme.MaterialComponents.DayNight.NoActionBar"> |
| 4 | <!-- Customize your theme here. --> | 4 | <!-- Customize your theme here. --> |
| 5 | </style> | 5 | </style> |
| 6 | + | ||
| 7 | + <!-- What the system draws while the webview and the origin server start. | ||
| 8 | + Without it the app opens on a blank white rectangle for a beat. --> | ||
| 9 | + <style name="Theme.hezarfen_mobile.Starting" parent="Theme.SplashScreen"> | ||
| 10 | + <item name="windowSplashScreenBackground">@color/splash_background</item> | ||
| 11 | + <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item> | ||
| 12 | + <item name="postSplashScreenTheme">@style/Theme.hezarfen_mobile</item> | ||
| 13 | + </style> | ||
| 6 | </resources> | 14 | </resources> |
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed
Binary file changed