style: extend edge-to-edge on all versions

Extend edge-to-edge to versions below Android Oreo. This is done
through tinting the navigation bar colors on those versions,
circumventing the coloring issue.
This commit is contained in:
OxygenCobalt
2022-01-15 20:12:23 -07:00
parent 4dcc3c3b69
commit 95e8b06f19
11 changed files with 29 additions and 36 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="nav_bar">#01fafafa</color>
<color name="chrome_transparent">#01fafafa</color>
<color name="chrome_translucent">#80000000</color>
<color name="red_primary">#BC1714</color>
<color name="red_on_primary">#FFFFFF</color>
+2 -1
View File
@@ -4,7 +4,8 @@
<style name="Theme.Auxio" parent="Theme.Material3.DayNight.NoActionBar" />
<!-- Template theme that handles edge-to-edge on other styles variants -->
<style name="Theme.Auxio.V27" parent="Theme.Auxio">
<item name="android:statusBarColor">@android:color/black</item>
<item name="android:statusBarColor">@color/chrome_translucent</item>
<item name="android:navigationBarColor">@color/chrome_translucent</item>
</style>
<!-- Android 12 configuration -->
<style name="Theme.Auxio.V31" parent="Theme.Auxio.V27" />