forge
Explore
Log in

Don't you dare go Hollow

Use the Hezarfen logo for the icon and the launch screen

Browse files at this commit

3424bc6de6697276c0e99a656c2099ec2e24cc5fBurak BoduroğluParent: 003c399
The launcher tile came from a placeholder drawn off the web favicon. It is
now the company logo: the adaptive foreground is drawn at two thirds so the
round mask does not clip the wordmark, and the tile's background is the
artwork's own night blue instead of white, so the icon reads as one disc.

The activity also gets a launch screen with the same logo, through
androidx.core-splashscreen, rather than opening on a blank white rectangle
while the webview and the origin server come up.
src-tauri/gen/android/app/build.gradle.ktsmodified+1 -0
@@ -59,6 +59,7 @@ rust {
5959
6060 dependencies {
6161 implementation("androidx.webkit:webkit:1.14.0")
62+ implementation("androidx.core:core-splashscreen:1.0.1")
6263 implementation("androidx.appcompat:appcompat:1.7.1")
6364 implementation("androidx.activity:activity-ktx:1.10.1")
6465 implementation("com.google.android.material:material:1.12.0")
src-tauri/gen/android/app/src/main/AndroidManifest.xmlmodified+1 -0
@@ -16,6 +16,7 @@
1616 android:launchMode="singleTask"
1717 android:label="@string/main_activity_title"
1818 android:name=".MainActivity"
19+ android:theme="@style/Theme.hezarfen_mobile.Starting"
1920 android:exported="true">
2021 <intent-filter>
2122 <action android:name="android.intent.action.MAIN" />
src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.ktmodified+4 -0
@@ -4,6 +4,7 @@ import android.os.Bundle
44 import android.webkit.JavascriptInterface
55 import android.webkit.WebView
66 import androidx.activity.enableEdgeToEdge
7+import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
78 import androidx.core.view.ViewCompat
89 import androidx.core.view.WindowInsetsCompat
910
@@ -27,6 +28,9 @@ class MainActivity : TauriActivity() {
2728 }
2829
2930 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()
3034 enableEdgeToEdge()
3135 super.onCreate(savedInstanceState)
3236 }
src-tauri/gen/android/app/src/main/res/drawable-nodpi/splash_icon.pngadded+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmladded+5 -0
@@ -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
src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.pngmodified+0 -0

Binary file changed

src-tauri/gen/android/app/src/main/res/values-night/themes.xmlmodified+8 -0
@@ -3,4 +3,12 @@
33 <style name="Theme.hezarfen_mobile" parent="Theme.MaterialComponents.DayNight.NoActionBar">
44 <!-- Customize your theme here. -->
55 </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>
614 </resources>
src-tauri/gen/android/app/src/main/res/values/colors.xmlmodified+2 -0
@@ -7,4 +7,6 @@
77 <color name="teal_700">#FF018786</color>
88 <color name="black">#FF000000</color>
99 <color name="white">#FFFFFFFF</color>
10+ <!-- The launch screen behind the logo. -->
11+ <color name="splash_background">#030A1D</color>
1012 </resources>
\ No newline at end of file
src-tauri/gen/android/app/src/main/res/values/ic_launcher_background.xmladded+4 -0
@@ -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
src-tauri/gen/android/app/src/main/res/values/themes.xmlmodified+8 -0
@@ -3,4 +3,12 @@
33 <style name="Theme.hezarfen_mobile" parent="Theme.MaterialComponents.DayNight.NoActionBar">
44 <!-- Customize your theme here. -->
55 </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>
614 </resources>
src-tauri/icons/128x128.pngmodified+0 -0

Binary file changed

src-tauri/icons/128x128@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/32x32.pngmodified+0 -0

Binary file changed

src-tauri/icons/64x64.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square107x107Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square142x142Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square150x150Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square284x284Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square30x30Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square310x310Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square44x44Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square71x71Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/Square89x89Logo.pngmodified+0 -0

Binary file changed

src-tauri/icons/StoreLogo.pngmodified+0 -0

Binary file changed

src-tauri/icons/icon.icnsmodified+0 -0

Binary file changed

src-tauri/icons/icon.icomodified+0 -0

Binary file changed

src-tauri/icons/icon.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-20x20@1x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-20x20@2x-1.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-20x20@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-20x20@3x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-29x29@1x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-29x29@2x-1.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-29x29@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-29x29@3x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-40x40@1x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-40x40@2x-1.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-40x40@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-40x40@3x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-512@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-60x60@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-60x60@3x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-76x76@1x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-76x76@2x.pngmodified+0 -0

Binary file changed

src-tauri/icons/ios/AppIcon-83.5x83.5@2x.pngmodified+0 -0

Binary file changed