Fix: android nav bar and status bar color (#7385)

* fix(android): set nav bar and status bar color

Close #7382
This commit is contained in:
Andelf
2022-11-21 10:50:10 +08:00
committed by GitHub
parent 962998a7b2
commit e618f5d1f7
11 changed files with 74 additions and 39 deletions

View File

@@ -39,6 +39,10 @@
"pkg": "@capawesome/capacitor-background-task",
"classpath": "io.capawesome.capacitorjs.plugins.backgroundtask.BackgroundTaskPlugin"
},
{
"pkg": "@hugotomazi/capacitor-navigation-bar",
"classpath": "br.com.tombus.capacitor.plugin.navigationbar.NavigationBarPlugin"
},
{
"pkg": "@logseq/capacitor-file-sync",
"classpath": "com.logseq.app.filesync.FileSyncPlugin"

View File

@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="logoPrimary">#002b36</color>
<color name="colorPrimary">#ffffff</color>
<color name="colorPrimaryDark">#002b36</color>
</resources>

View File

@@ -14,6 +14,8 @@
<item name="windowNoTitle">true</item>
<item name="android:background">@null</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:navigationBarColor">@color/colorPrimary</item>
<item name="android:statusBarColor">@color/colorPrimary</item>
</style>
<!-- App Starting -->