ui: do not enforce contrast after api 29
Set the enforce*BarContrast methods to false above API 29, so we can use fully transparent navigation and status bars. Previously, we used a mostly transparent color for such, but now, we can use a completely transparent color without it being changed to match contrast.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.Auxio.V29" parent="Theme.Auxio.V27">
|
||||
<!--
|
||||
Android 10 finally allows you to use fully transparent system bars without it automatically
|
||||
forcing contrast.
|
||||
-->
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||
<item name="android:enforceNavigationBarContrast">false</item>
|
||||
<item name="android:enforceStatusBarContrast">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user