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 {
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")
src-tauri/gen/android/app/src/main/AndroidManifest.xmlmodified+1 -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" />
src-tauri/gen/android/app/src/main/java/co/hezarfen/app/MainActivity.ktmodified+4 -0
@@ -4,6 +4,7 @@ import android.os.Bundle
4 import android.webkit.JavascriptInterface4 import android.webkit.JavascriptInterface
5 import android.webkit.WebView5 import android.webkit.WebView
6 import androidx.activity.enableEdgeToEdge6 import androidx.activity.enableEdgeToEdge
7+import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
7 import androidx.core.view.ViewCompat8 import androidx.core.view.ViewCompat
8 import androidx.core.view.WindowInsetsCompat9 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 }
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\ 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 @@
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>
src-tauri/gen/android/app/src/main/res/values/colors.xmlmodified+2 -0
@@ -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
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\ No newline at end of file
src-tauri/gen/android/app/src/main/res/values/themes.xmlmodified+8 -0
@@ -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>
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