diff --git a/client/android/app/src/main/res/drawable-land-hdpi/splash.png b/client/android/app/src/main/res/drawable-land-hdpi/splash.png
index e31573b4f..74dc3b3b9 100644
Binary files a/client/android/app/src/main/res/drawable-land-hdpi/splash.png and b/client/android/app/src/main/res/drawable-land-hdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-ldpi/splash.png b/client/android/app/src/main/res/drawable-land-ldpi/splash.png
new file mode 100644
index 000000000..0fc76905b
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-ldpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-mdpi/splash.png b/client/android/app/src/main/res/drawable-land-mdpi/splash.png
index f7a64923e..44e47fe08 100644
Binary files a/client/android/app/src/main/res/drawable-land-mdpi/splash.png and b/client/android/app/src/main/res/drawable-land-mdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-night-hdpi/splash.png b/client/android/app/src/main/res/drawable-land-night-hdpi/splash.png
new file mode 100644
index 000000000..74dc3b3b9
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-night-hdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-night-ldpi/splash.png b/client/android/app/src/main/res/drawable-land-night-ldpi/splash.png
new file mode 100644
index 000000000..0fc76905b
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-night-ldpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-night-mdpi/splash.png b/client/android/app/src/main/res/drawable-land-night-mdpi/splash.png
new file mode 100644
index 000000000..44e47fe08
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-night-mdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-night-xhdpi/splash.png b/client/android/app/src/main/res/drawable-land-night-xhdpi/splash.png
new file mode 100644
index 000000000..86befb958
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-night-xhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png b/client/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png
new file mode 100644
index 000000000..05ed96e11
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-night-xxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png b/client/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png
new file mode 100644
index 000000000..a10b336e5
Binary files /dev/null and b/client/android/app/src/main/res/drawable-land-night-xxxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-xhdpi/splash.png b/client/android/app/src/main/res/drawable-land-xhdpi/splash.png
index 807725501..86befb958 100644
Binary files a/client/android/app/src/main/res/drawable-land-xhdpi/splash.png and b/client/android/app/src/main/res/drawable-land-xhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-xxhdpi/splash.png b/client/android/app/src/main/res/drawable-land-xxhdpi/splash.png
index 14c6c8fe3..05ed96e11 100644
Binary files a/client/android/app/src/main/res/drawable-land-xxhdpi/splash.png and b/client/android/app/src/main/res/drawable-land-xxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-land-xxxhdpi/splash.png b/client/android/app/src/main/res/drawable-land-xxxhdpi/splash.png
index 244ca2506..a10b336e5 100644
Binary files a/client/android/app/src/main/res/drawable-land-xxxhdpi/splash.png and b/client/android/app/src/main/res/drawable-land-xxxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-night/splash.png b/client/android/app/src/main/res/drawable-night/splash.png
new file mode 100644
index 000000000..0fc76905b
Binary files /dev/null and b/client/android/app/src/main/res/drawable-night/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-hdpi/splash.png b/client/android/app/src/main/res/drawable-port-hdpi/splash.png
index 74faaa583..26fb4b482 100644
Binary files a/client/android/app/src/main/res/drawable-port-hdpi/splash.png and b/client/android/app/src/main/res/drawable-port-hdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-ldpi/splash.png b/client/android/app/src/main/res/drawable-port-ldpi/splash.png
new file mode 100644
index 000000000..aebbc4c8d
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-ldpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-mdpi/splash.png b/client/android/app/src/main/res/drawable-port-mdpi/splash.png
index e944f4ad4..55a7a810d 100644
Binary files a/client/android/app/src/main/res/drawable-port-mdpi/splash.png and b/client/android/app/src/main/res/drawable-port-mdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-night-hdpi/splash.png b/client/android/app/src/main/res/drawable-port-night-hdpi/splash.png
new file mode 100644
index 000000000..26fb4b482
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-night-hdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-night-ldpi/splash.png b/client/android/app/src/main/res/drawable-port-night-ldpi/splash.png
new file mode 100644
index 000000000..aebbc4c8d
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-night-ldpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-night-mdpi/splash.png b/client/android/app/src/main/res/drawable-port-night-mdpi/splash.png
new file mode 100644
index 000000000..55a7a810d
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-night-mdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-night-xhdpi/splash.png b/client/android/app/src/main/res/drawable-port-night-xhdpi/splash.png
new file mode 100644
index 000000000..4bc78881a
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-night-xhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png b/client/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png
new file mode 100644
index 000000000..1db91f892
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-night-xxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png b/client/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png
new file mode 100644
index 000000000..b4480e6c5
Binary files /dev/null and b/client/android/app/src/main/res/drawable-port-night-xxxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-xhdpi/splash.png b/client/android/app/src/main/res/drawable-port-xhdpi/splash.png
index 564a82ff9..4bc78881a 100644
Binary files a/client/android/app/src/main/res/drawable-port-xhdpi/splash.png and b/client/android/app/src/main/res/drawable-port-xhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-xxhdpi/splash.png b/client/android/app/src/main/res/drawable-port-xxhdpi/splash.png
index bfabe6871..1db91f892 100644
Binary files a/client/android/app/src/main/res/drawable-port-xxhdpi/splash.png and b/client/android/app/src/main/res/drawable-port-xxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable-port-xxxhdpi/splash.png b/client/android/app/src/main/res/drawable-port-xxxhdpi/splash.png
index 692907126..b4480e6c5 100644
Binary files a/client/android/app/src/main/res/drawable-port-xxxhdpi/splash.png and b/client/android/app/src/main/res/drawable-port-xxxhdpi/splash.png differ
diff --git a/client/android/app/src/main/res/drawable/splash.png b/client/android/app/src/main/res/drawable/splash.png
index f7a64923e..55a7a810d 100644
Binary files a/client/android/app/src/main/res/drawable/splash.png and b/client/android/app/src/main/res/drawable/splash.png differ
diff --git a/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index 036d09bc5..0aa82aa1b 100644
--- a/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,5 +1,9 @@
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index 036d09bc5..0aa82aa1b 100644
--- a/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,5 +1,9 @@
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
index c023e5059..1ecdbd50a 100644
Binary files a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
new file mode 100644
index 000000000..47e9be622
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png differ
diff --git a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
index 2127973b2..9b8ff8815 100644
Binary files a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
index b441f37d6..48574eef7 100644
Binary files a/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/client/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/client/android/app/src/main/res/mipmap-ldpi/ic_launcher.png b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher.png
new file mode 100644
index 000000000..18c52ea62
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher.png differ
diff --git a/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png
new file mode 100644
index 000000000..66a1732ef
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_background.png differ
diff --git a/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png
new file mode 100644
index 000000000..0a584ad35
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_foreground.png differ
diff --git a/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png
new file mode 100644
index 000000000..df8fd53aa
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-ldpi/ic_launcher_round.png differ
diff --git a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 72905b854..8ffbeb0f7 100644
Binary files a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
new file mode 100644
index 000000000..973f77a5e
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png differ
diff --git a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
index 8ed0605c2..428687e12 100644
Binary files a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
index 9502e47a2..237de9a01 100644
Binary files a/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/client/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 4d1e07710..8233d2e85 100644
Binary files a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
new file mode 100644
index 000000000..22a1733dc
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png differ
diff --git a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
index df0f15880..763f248d2 100644
Binary files a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
index 853db043d..911f1e4fa 100644
Binary files a/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index 6cdf97c11..012c55d9a 100644
Binary files a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
new file mode 100644
index 000000000..e4ad83b1b
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
index 2960cbb61..e4768d12b 100644
Binary files a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
index 8e3093a86..e572cd218 100644
Binary files a/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 46de6e255..bebe0ad39 100644
Binary files a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
new file mode 100644
index 000000000..20bbdf1d6
Binary files /dev/null and b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
index d2ea9abed..ad270eb56 100644
Binary files a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
index a40d73e9c..94317032b 100644
Binary files a/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/client/android/app/src/main/res/values/ic_launcher_background.xml b/client/android/app/src/main/res/values/ic_launcher_background.xml
index c5d5899fd..c96e7f892 100644
--- a/client/android/app/src/main/res/values/ic_launcher_background.xml
+++ b/client/android/app/src/main/res/values/ic_launcher_background.xml
@@ -1,4 +1,5 @@
- #FFFFFF
-
\ No newline at end of file
+ #09090B
+ #09090B
+
diff --git a/client/android/app/src/main/res/values/strings.xml b/client/android/app/src/main/res/values/strings.xml
index 0b80e5533..768fe05ff 100644
--- a/client/android/app/src/main/res/values/strings.xml
+++ b/client/android/app/src/main/res/values/strings.xml
@@ -1,7 +1,7 @@
- TREK - Plan your trips!
- TREK - Plan your trips!
+ TREK
+ TREK
com.liketrek.trek
com.liketrek.trek
diff --git a/client/android/app/src/main/res/values/styles.xml b/client/android/app/src/main/res/values/styles.xml
index be874e54a..3ee713faa 100644
--- a/client/android/app/src/main/res/values/styles.xml
+++ b/client/android/app/src/main/res/values/styles.xml
@@ -18,5 +18,8 @@
\ No newline at end of file
diff --git a/client/assets/icon-background.png b/client/assets/icon-background.png
new file mode 100644
index 000000000..147028acc
Binary files /dev/null and b/client/assets/icon-background.png differ
diff --git a/client/assets/icon-foreground.png b/client/assets/icon-foreground.png
new file mode 100644
index 000000000..494f4e95f
Binary files /dev/null and b/client/assets/icon-foreground.png differ
diff --git a/client/assets/icon-only.png b/client/assets/icon-only.png
new file mode 100644
index 000000000..5ab37c184
Binary files /dev/null and b/client/assets/icon-only.png differ
diff --git a/client/assets/splash-dark.png b/client/assets/splash-dark.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/assets/splash-dark.png differ
diff --git a/client/assets/splash.png b/client/assets/splash.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/assets/splash.png differ
diff --git a/client/capacitor.config.ts b/client/capacitor.config.ts
index 17147a102..9069f5b16 100644
--- a/client/capacitor.config.ts
+++ b/client/capacitor.config.ts
@@ -5,7 +5,9 @@ import { KeyboardResize } from '@capacitor/keyboard';
const config: CapacitorConfig = {
appId: 'com.liketrek.trek',
- appName: 'TREK - Plan your trips!',
+ // What the home screen shows under the icon; the longer title belongs to
+ // the store listings.
+ appName: 'TREK',
// The app ships only the address screen. Once a server is picked, the native
// side points the WebView at it (TrekBridgeViewController.swift,
// MainActivity.java) and the UI comes from that server, always in the version
diff --git a/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
index adf6ba01d..adc348d3e 100644
Binary files a/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png and b/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png differ
diff --git a/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
index 9b7d382dc..b1a84833e 100644
--- a/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/client/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -1,14 +1,14 @@
{
- "images" : [
+ "images": [
{
- "filename" : "AppIcon-512@2x.png",
- "idiom" : "universal",
- "platform" : "ios",
- "size" : "1024x1024"
+ "idiom": "universal",
+ "size": "1024x1024",
+ "filename": "AppIcon-512@2x.png",
+ "platform": "ios"
}
],
- "info" : {
- "author" : "xcode",
- "version" : 1
+ "info": {
+ "author": "xcode",
+ "version": 1
}
-}
+}
\ No newline at end of file
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/client/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
index d7d96a67c..84a416d6b 100644
--- a/client/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
+++ b/client/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
@@ -1,23 +1,56 @@
{
- "images" : [
+ "images": [
{
- "idiom" : "universal",
- "filename" : "splash-2732x2732-2.png",
- "scale" : "1x"
+ "idiom": "universal",
+ "filename": "Default@1x~universal~anyany.png",
+ "scale": "1x"
},
{
- "idiom" : "universal",
- "filename" : "splash-2732x2732-1.png",
- "scale" : "2x"
+ "idiom": "universal",
+ "filename": "Default@2x~universal~anyany.png",
+ "scale": "2x"
},
{
- "idiom" : "universal",
- "filename" : "splash-2732x2732.png",
- "scale" : "3x"
+ "idiom": "universal",
+ "filename": "Default@3x~universal~anyany.png",
+ "scale": "3x"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "idiom": "universal",
+ "scale": "1x",
+ "filename": "Default@1x~universal~anyany-dark.png"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "idiom": "universal",
+ "scale": "2x",
+ "filename": "Default@2x~universal~anyany-dark.png"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "idiom": "universal",
+ "scale": "3x",
+ "filename": "Default@3x~universal~anyany-dark.png"
}
],
- "info" : {
- "version" : 1,
- "author" : "xcode"
+ "info": {
+ "version": 1,
+ "author": "xcode"
}
}
\ No newline at end of file
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png
new file mode 100644
index 000000000..90e75a40f
Binary files /dev/null and b/client/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png
deleted file mode 100644
index 33ea6c970..000000000
Binary files a/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png and /dev/null differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png
deleted file mode 100644
index 33ea6c970..000000000
Binary files a/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png and /dev/null differ
diff --git a/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png
deleted file mode 100644
index 33ea6c970..000000000
Binary files a/client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png and /dev/null differ
diff --git a/client/ios/App/App/Info.plist b/client/ios/App/App/Info.plist
index ea4ab407b..5e6e9cbef 100644
--- a/client/ios/App/App/Info.plist
+++ b/client/ios/App/App/Info.plist
@@ -7,7 +7,7 @@
CFBundleDevelopmentRegion
en
CFBundleDisplayName
- TREK - Plan your trips!
+ TREK
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
diff --git a/client/package.json b/client/package.json
index d5d30dbcf..0e3b00994 100644
--- a/client/package.json
+++ b/client/package.json
@@ -7,6 +7,7 @@
"dev": "vite",
"prebuild": "node scripts/patch-maplibre.mjs && node scripts/generate-icons.mjs",
"icons:native": "node scripts/generate-native-icons.mjs",
+ "icons:app": "node scripts/generate-app-icons.mjs && npx @capacitor/assets generate --android --ios --iconBackgroundColor #09090b --iconBackgroundColorDark #09090b --splashBackgroundColor #09090b --splashBackgroundColorDark #09090b",
"build:native": "vite build --config vite.native.config.js",
"cap:sync": "npm run build:native && cap sync",
"build": "vite build",
diff --git a/client/scripts/generate-app-icons.mjs b/client/scripts/generate-app-icons.mjs
new file mode 100644
index 000000000..0dd9d275b
--- /dev/null
+++ b/client/scripts/generate-app-icons.mjs
@@ -0,0 +1,104 @@
+/**
+ * Renders the native apps' icon and splash sources into assets/, from the
+ * white TREK mark in public/icons/icon-white.svg. `npx @capacitor/assets
+ * generate --android --ios` then turns them into every size both platforms
+ * ask for (see the icons:app script).
+ *
+ * The look: a dark, slightly glassy tile (a soft light from the top left and a
+ * sheen over the upper half) under the white mark. Dark because that is the
+ * app's launch background (#09090b) and its default scheme.
+ *
+ * Android's adaptive icon masks the foreground to a circle inside the
+ * canvas, so the mark there sits smaller than on the iOS tile.
+ */
+import { mkdirSync, readFileSync } from 'fs'
+import { dirname, join } from 'path'
+import { fileURLToPath } from 'url'
+import sharp from 'sharp'
+
+const clientDir = join(dirname(fileURLToPath(import.meta.url)), '..')
+const outDir = join(clientDir, 'assets')
+mkdirSync(outDir, { recursive: true })
+
+const source = readFileSync(join(clientDir, 'public', 'icons', 'icon-white.svg'), 'utf8')
+const markPath = [...source.matchAll(/ m[1]).find((d) => d.length > 500)
+if (!markPath) throw new Error('No mark path found in icon-white.svg')
+// The mark's extent inside its 1500 x 1500 viewBox.
+const MARK = { x: 40, y: 5, w: 1420, h: 1490 }
+
+const LAUNCH_BG = '#09090b'
+
+function tile(size) {
+ return ``
+}
+
+/** The white mark, `share` of the canvas tall, centred, with a soft shadow for depth. */
+function mark(size, share, shadow = true) {
+ const scale = (1024 * share) / MARK.h
+ const w = MARK.w * scale
+ const h = MARK.h * scale
+ const tx = (1024 - w) / 2 - MARK.x * scale
+ const ty = (1024 - h) / 2 - MARK.y * scale
+ return ``
+}
+
+async function render(svg, file) {
+ await sharp(Buffer.from(svg)).png().toFile(join(outDir, file))
+}
+
+async function composite(background, overlay, file, size) {
+ const base = await sharp(Buffer.from(background)).resize(size, size).png().toBuffer()
+ const top = await sharp(Buffer.from(overlay)).resize(size, size).png().toBuffer()
+ await sharp(base).composite([{ input: top }]).flatten({ background: LAUNCH_BG }).png().toFile(join(outDir, file))
+}
+
+// iOS and store listings: one opaque tile, the mark at about half its height.
+await composite(tile(1024), mark(1024, 0.5), 'icon-only.png', 1024)
+// Android adaptive icon: the two layers apart, the mark inside the safe circle.
+await render(tile(1024), 'icon-background.png')
+await render(mark(1024, 0.58), 'icon-foreground.png')
+// Splash: the launch background with the mark, light and dark alike.
+const splashBg = ``
+await composite(splashBg, mark(2732, 0.2, false), 'splash.png', 2732)
+await composite(splashBg, mark(2732, 0.2, false), 'splash-dark.png', 2732)
+
+console.log(`[app-icons] wrote icon and splash sources to ${outDir}`)