Refactor Styles, disable colored navigation bar when we can't be sure that navigation bar buttons will have enough contrast (API < 27)
This commit is contained in:
parent
8d64eac853
commit
8002cc2771
4 changed files with 53 additions and 43 deletions
|
|
@ -1,22 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Base Theme -->
|
||||
<style name="Base.V27" parent="Base.V21">
|
||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||
</style>
|
||||
<style name="Base" parent="Base.V27"/>
|
||||
|
||||
<!-- Light Theme -->
|
||||
<style name="Base.V27.LightTheme" parent="Base.V21.LightTheme">
|
||||
<item name="android:windowLightNavigationBar">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Base.LightTheme" parent="Base.V27.LightTheme" />
|
||||
|
||||
<!-- Dark Theme -->
|
||||
<style name="Base.V27.DarkTheme" parent="Base.V21.DarkTheme">
|
||||
<item name="android:windowLightNavigationBar">false</item>
|
||||
</style>
|
||||
|
||||
<style name="Base.DarkTheme" parent="Base.V27.DarkTheme" />
|
||||
|
||||
<!-- Black Theme -->
|
||||
<style name="Base.V27.BlackTheme" parent="Base.V21.BlackTheme">
|
||||
<item name="android:windowLightNavigationBar">false</item>
|
||||
<!-- BlackTheme inherits DarkTheme, so no need to specify windowLightNavigationBar here -->
|
||||
</style>
|
||||
|
||||
<style name="Base.BlackTheme" parent="Base.V27.BlackTheme" />
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue