Force dark navbar in dark mode

This commit is contained in:
krlvm 2024-09-01 18:47:37 +03:00
parent 9d289f096e
commit 0bf11e10fd
No known key found for this signature in database
GPG Key ID: B8552A91FD265536
7 changed files with 47 additions and 26 deletions

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="is_light_theme">false</bool>
</resources>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">@color/white</color>
<color name="primaryVariant">#E5E5E5</color>
<color name="onPrimary">@color/black</color>
<color name="statusBar">@color/black</color>
</resources>

View File

@ -1,13 +0,0 @@
<resources>
<!-- Base application theme. -->
<style name="Theme.ByeDPI" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/white</item>
<item name="colorPrimaryVariant">#E5E5E5</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">#5976DF</item>
<item name="colorSecondaryVariant">#3C52A3</item>
<item name="colorOnSecondary">@color/white</item>
</style>
</resources>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.ByeDPI.V27" parent="Theme.ByeDPI.Base">
<item name="android:windowLightNavigationBar">@bool/is_light_theme</item>
</style>
<style name="Theme.ByeDPI" parent="Theme.ByeDPI.V27" />
</resources>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="is_light_theme">true</bool>
</resources>

View File

@ -2,4 +2,15 @@
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="primary">#5976DF</color>
<color name="primaryVariant">#3C52A3</color>
<color name="onPrimary">@color/white</color>
<color name="secondary">#5976DF</color>
<color name="secondaryVariant">#3C52A3</color>
<color name="onSecondary">@color/white</color>
<color name="statusBar">@color/primaryVariant</color>
</resources>

View File

@ -1,16 +1,16 @@
<resources>
<!-- Base application theme. -->
<style name="Theme.ByeDPI" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">#5976DF</item>
<item name="colorPrimaryVariant">#3C52A3</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">#5976DF</item>
<item name="colorSecondaryVariant">#3C52A3</item>
<item name="colorOnSecondary">@color/white</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
<style name="Theme.ByeDPI.Base" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryVariant">@color/primaryVariant</item>
<item name="colorOnPrimary">@color/onPrimary</item>
<item name="colorSecondary">@color/secondary</item>
<item name="colorSecondaryVariant">@color/secondaryVariant</item>
<item name="colorOnSecondary">@color/onSecondary</item>
<item name="android:statusBarColor">@color/statusBar</item>
<item name="android:navigationBarColor">?android:colorBackground</item>
</style>
<style name="Theme.ByeDPI" parent="Theme.ByeDPI.Base" />
</resources>