diff options
Diffstat (limited to 'android/app/src')
| -rw-r--r-- | android/app/src/main/AndroidManifest.xml | 15 | ||||
| -rw-r--r-- | android/app/src/main/res/values/colors.xml | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4eb96a7..e2f4e16 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -21,6 +21,21 @@ <meta-data 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. --> + <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" /> + <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" /> <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 99cea76..42e2db8 100644 --- a/android/app/src/main/res/values/colors.xml +++ b/android/app/src/main/res/values/colors.xml @@ -1,4 +1,8 @@ <?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> </resources> |
