ui: don't play with status and navigation colors on old APIs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
58c19385a3
commit
c3c4cd05b1
7
ui/src/main/res/values-v23/styles.xml
Normal file
7
ui/src/main/res/values-v23/styles.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<style name="AppTheme" parent="AppThemeBase">
|
||||||
|
<item name="android:statusBarColor">?android:colorBackground</item>
|
||||||
|
<item name="android:windowLightStatusBar">@bool/light_status_bar</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
9
ui/src/main/res/values-v27/styles.xml
Normal file
9
ui/src/main/res/values-v27/styles.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<style name="AppTheme" parent="AppThemeBase">
|
||||||
|
<item name="android:statusBarColor">?android:colorBackground</item>
|
||||||
|
<item name="android:windowLightStatusBar">@bool/light_status_bar</item>
|
||||||
|
<item name="android:navigationBarColor">?android:colorBackground</item>
|
||||||
|
<item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
@ -5,16 +5,15 @@
|
|||||||
<item name="android:background">?attr/colorSurface</item>
|
<item name="android:background">?attr/colorSurface</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppTheme" parent="WireGuardTheme">
|
<style name="AppThemeBase" parent="WireGuardTheme">
|
||||||
<item name="android:statusBarColor">?android:colorBackground</item>
|
|
||||||
<item name="android:navigationBarColor">?android:colorBackground</item>
|
|
||||||
<item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
|
|
||||||
<item name="android:windowLightStatusBar">@bool/light_status_bar</item>
|
|
||||||
<item name="materialCardViewStyle">@style/WireGuardTheme.MaterialCardView</item>
|
<item name="materialCardViewStyle">@style/WireGuardTheme.MaterialCardView</item>
|
||||||
<item name="toolbarStyle">@style/WireGuardTheme.Toolbar</item>
|
<item name="toolbarStyle">@style/WireGuardTheme.Toolbar</item>
|
||||||
<item name="bottomSheetDialogTheme">@style/WireGuardTheme.BottomSheetDialog</item>
|
<item name="bottomSheetDialogTheme">@style/WireGuardTheme.BottomSheetDialog</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Various additional API-specific features in values-v*/styles.xml -->
|
||||||
|
<style name="AppTheme" parent="AppThemeBase"/>
|
||||||
|
|
||||||
<style name="WireGuardTheme.MaterialCardView" parent="Widget.Material3.CardView.Elevated">
|
<style name="WireGuardTheme.MaterialCardView" parent="Widget.Material3.CardView.Elevated">
|
||||||
<item name="cornerRadius">4dp</item>
|
<item name="cornerRadius">4dp</item>
|
||||||
<item name="contentPadding">8dp</item>
|
<item name="contentPadding">8dp</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user