Make Navigation Bar buttons color black in Light Theme

This commit is contained in:
krlvm 2021-03-26 23:46:56 +03:00
parent b3e2418b93
commit 610d0b272e
No known key found for this signature in database
GPG Key ID: B8552A91FD265536
4 changed files with 39 additions and 11 deletions

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.V21.LightTheme" parent="Base.V7.LightTheme">
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>
<style name="Base.LightTheme" parent="Base.V21.LightTheme" />
<style name="Base.V21.DarkTheme" parent="Base.V7.DarkTheme">
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>
<style name="Base.DarkTheme" parent="Base.V21.DarkTheme" />
<style name="Base.V21.BlackTheme" parent="Base.V7.BlackTheme">
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>
<style name="Base.BlackTheme" parent="Base.V21.BlackTheme" />
</resources>

View File

@ -1,16 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.V27.DarkTheme" parent="Base.V7.DarkTheme">
<item name="android:navigationBarColor">@color/dark_background_color</item>
<style name="Base.V27.LightTheme" parent="Base.V21.LightTheme">
<item name="android:windowLightNavigationBar">true</item>
</style>
<style name="Base.LightTheme" parent="Base.V27.LightTheme" />
<style name="Base.V27.DarkTheme" parent="Base.V21.DarkTheme">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="Base.DarkTheme" parent="Base.V27.DarkTheme" />
<style name="Base.V27.BlackTheme" parent="Base.V7.BlackTheme">
<item name="android:navigationBarColor">@android:color/black</item>
<style name="Base.V27.BlackTheme" parent="Base.V21.BlackTheme">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="Base.BlackTheme" parent="Base.V27.BlackTheme" />
</resources>

View File

@ -1,24 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.V29.LightTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:navigationBarColor">@android:color/transparent</item>
<style name="Base.V29.LightTheme" parent="Base.V27.LightTheme">
<item name="android:enforceNavigationBarContrast">false</item>
</style>
<style name="Base.LightTheme" parent="Base.V29.LightTheme" />
<style name="Base.V29.DarkTheme" parent="Base.V7.DarkTheme">
<item name="android:navigationBarColor">@android:color/transparent</item>
<style name="Base.V29.DarkTheme" parent="Base.V27.DarkTheme">
<item name="android:enforceNavigationBarContrast">false</item>
</style>
<style name="Base.DarkTheme" parent="Base.V29.DarkTheme" />
<style name="Base.V29.BlackTheme" parent="Base.V7.BlackTheme">
<item name="android:navigationBarColor">@android:color/transparent</item>
<style name="Base.V29.BlackTheme" parent="Base.V27.BlackTheme">
<item name="android:enforceNavigationBarContrast">false</item>
</style>
<style name="Base.BlackTheme" parent="Base.V29.BlackTheme" />
</resources>

View File

@ -9,7 +9,9 @@
</style>
<!-- Base themes -->
<style name="Base.LightTheme" parent="Theme.AppCompat.DayNight.DarkActionBar" />
<style name="Base.V7.LightTheme" parent="Theme.AppCompat.DayNight.NoActionBar" />
<style name="Base.LightTheme" parent="Base.V7.LightTheme" />
<style name="LightTheme" parent="Base.LightTheme">
<item name="colorPrimary">@color/light_youtube_primary_color</item>