diff options
author | Kisaragi Hiu <mail@kisaragi-hiu.com> | 2024-04-13 07:40:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 15:40:22 -0700 |
commit | cefa0a55e8240e24e2961d929ead2d20743858ce (patch) | |
tree | 9b0f8c2df896a07cfb3c5ead09e6306072eed83c /app.config.js | |
parent | c3821fdc311fe7ddebede427715892d3a1e53716 (diff) | |
download | voidsky-cefa0a55e8240e24e2961d929ead2d20743858ce.tar.zst |
android: fix navigation bar always being bright even in dark mode (#3464)
Right now both light mode and dark mode get light navigation bar, and looks jarring in the dark modes. This commit applies a more appropriate color before the UI thread runs (in app config), as well as applying the current theme background after the UI shell is mounted. This should fix #3332. Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'app.config.js')
-rw-r--r-- | app.config.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app.config.js b/app.config.js index 40feed40c..c42ae5a31 100644 --- a/app.config.js +++ b/app.config.js @@ -95,6 +95,11 @@ module.exports = function (config) { barStyle: 'light-content', backgroundColor: '#00000000', }, + // Dark nav bar in light mode is better than light nav bar in dark mode + androidNavigationBar: { + barStyle: 'light-content', + backgroundColor: DARK_SPLASH_CONFIG_ANDROID.backgroundColor, + }, android: { icon: './assets/icon.png', adaptiveIcon: { |