add navigation bar color for API >= 27

This commit is contained in:
Conny Duck 2017-12-13 19:35:12 +01:00
parent 3bd855d4c4
commit 2e4fef69a1
2 changed files with 22 additions and 5 deletions

View File

@ -0,0 +1,17 @@
<resources>
<!--Dark Application Theme Styles-->
<style name="AppTheme" parent="AppThemeBase">
<item name="android:windowLightNavigationBar">false</item>
<item name="android:navigationBarColor">@color/window_background_dark</item>
<item name="android:navigationBarDividerColor">@color/status_divider_dark</item>
</style>
<!--Light Application Theme Styles-->
<style name="AppTheme.Light" parent="AppThemeBase.Light">
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarColor">@color/color_background_light</item>
<item name="android:navigationBarDividerColor">@color/status_divider_light</item>
</style>
</resources>

View File

@ -32,9 +32,9 @@
<item name="android:windowNoTitle">true</item> <item name="android:windowNoTitle">true</item>
</style> </style>
<!--Base Application Theme Styles (Dark)--> <!--Dark Application Theme Styles-->
<style name="AppTheme" parent="AppThemeBase"/>
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <style name="AppThemeBase" parent="Theme.AppCompat.NoActionBar">
<item name="colorPrimary">@color/color_primary_dark</item> <item name="colorPrimary">@color/color_primary_dark</item>
<item name="colorPrimaryDark">@color/color_primary_dark_dark</item> <item name="colorPrimaryDark">@color/color_primary_dark_dark</item>
<item name="colorAccent">@color/color_accent_dark</item> <item name="colorAccent">@color/color_accent_dark</item>
@ -119,8 +119,8 @@
</style> </style>
<!--Light Application Theme Styles--> <!--Light Application Theme Styles-->
<style name="AppTheme.Light" parent="AppThemeBase.Light"/>
<style name="AppTheme.Light" parent="Theme.AppCompat.Light.NoActionBar"> <style name="AppThemeBase.Light" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/color_primary_light</item> <item name="colorPrimary">@color/color_primary_light</item>
<item name="colorPrimaryDark">@color/color_primary_dark_light</item> <item name="colorPrimaryDark">@color/color_primary_dark_light</item>
<item name="colorAccent">@color/color_accent_light</item> <item name="colorAccent">@color/color_accent_light</item>