aboutsummaryrefslogtreecommitdiffstats
path: root/android/app/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-27 23:58:44 -0700
committerAdam Soltys <[email protected]>2026-09-27 23:58:44 -0700
commit318fef4880373fe5c12c366cd8b1c322771714e6 (patch)
tree847bf858e7f9fba0b3defab17d26e8731012464a /android/app/src
parentaad978dba8d611cbf58c5c6c52183e31afe67af1 (diff)
downloadcoinosv3-318fef4880373fe5c12c366cd8b1c322771714e6.tar.gz
coinosv3-318fef4880373fe5c12c366cd8b1c322771714e6.zip
The Android app's system bars follow the system theme, and the page's theme colour follows the app's.
One dark colour for both bars gave white navigation icons over a light page under gesture navigation. The wrapper (1.9, versionCode 10) now uses the page background in light mode and the dark theme colour in dark mode, for the status bar and the navigation bar alike. The page updates its theme-color meta when its own theme is applied, so a PWA's status bar and the wrapper's follow the same switch. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/main/AndroidManifest.xml8
-rw-r--r--android/app/src/main/res/values/colors.xml12
2 files changed, 12 insertions, 8 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 36f9d1e..b0dddbd 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -31,20 +31,20 @@
android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://v3.coinos.io/" />
<!-- System-bar colors: without these the TWA status bar defaults to
- white. Match the PWA's dark theme_color (#15171a). Light + dark
- variants both dark so it's consistent whatever the system theme. -->
+ white. Light follows the page background, dark the PWA's
+ theme_color, so the bar icons keep their contrast either way. -->
<meta-data
android:name="android.support.customtabs.trusted.STATUS_BAR_COLOR"
android:resource="@color/statusBarColor" />
<meta-data
android:name="android.support.customtabs.trusted.STATUS_BAR_COLOR_DARK"
- android:resource="@color/statusBarColor" />
+ android:resource="@color/statusBarColorDark" />
<meta-data
android:name="android.support.customtabs.trusted.NAVIGATION_BAR_COLOR"
android:resource="@color/navigationBarColor" />
<meta-data
android:name="android.support.customtabs.trusted.NAVIGATION_BAR_COLOR_DARK"
- android:resource="@color/navigationBarColor" />
+ android:resource="@color/navigationBarColorDark" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
index 42e2db8..d444318 100644
--- a/android/app/src/main/res/values/colors.xml
+++ b/android/app/src/main/res/values/colors.xml
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
- <!-- TWA system-bar colors: match the PWA's theme_color (#15171a) so the
- status bar isn't the androidbrowserhelper default white. -->
- <color name="statusBarColor">#15171A</color>
- <color name="navigationBarColor">#15171A</color>
+ <!-- TWA system-bar colors, per system theme: the page background in
+ light mode (dark icons) and the PWA's theme_color in dark mode (light
+ icons). One dark colour for both used to give white nav icons over a
+ light page under gesture navigation. -->
+ <color name="statusBarColor">#EEF0F3</color>
+ <color name="navigationBarColor">#EEF0F3</color>
+ <color name="statusBarColorDark">#15171A</color>
+ <color name="navigationBarColorDark">#15171A</color>
</resources>