Fix navigationbar in all activity

Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
This commit is contained in:
Joris Bodin 2020-05-19 17:06:10 +02:00
parent a575cb01c6
commit 183e1eb77b
No known key found for this signature in database
GPG key ID: 3144433DBB0C5A21
3 changed files with 39 additions and 4 deletions

View file

@ -22,4 +22,17 @@
<style name="Theme.ownCloud.Toolbar.Drawer">
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
<style name="Theme.ownCloud.Toolbar" parent="Theme.ownCloud.ToolbarBase">
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
<style name="Theme.ownCloud" parent="Theme.ownCloudBase">
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
<style name="FallbackThemingTheme" parent="FallbackThemingThemeBase21">
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
</resources>

View file

@ -18,16 +18,20 @@
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- General ownCloud app style -->
<style name="Theme.ownCloud" parent="BaseTheme.ownCloud">
<style name="Theme.ownCloudBase" parent="BaseTheme.ownCloud">
<item name="android:actionModeBackground">@color/action_mode_background</item>
<item name="android:datePickerDialogTheme">@style/FallbackDatePickerDialogTheme</item>
</style>
<style name="FallbackThemingTheme" parent="FallbackThemingThemeBase">
<style name="Theme.ownCloud" parent="Theme.ownCloudBase" />
<style name="FallbackThemingThemeBase21" parent="FallbackThemingThemeBase">
<item name="android:actionModeBackground">@color/action_mode_background</item>
<item name="android:datePickerDialogTheme">@style/FallbackDatePickerDialogTheme</item>
</style>
<style name="FallbackThemingTheme" parent="FallbackThemingThemeBase21" />
<style name="FallbackDatePickerDialogTheme" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
<item name="colorPrimary">@color/bg_default</item>
<item name="android:textAllCaps">false</item>
@ -51,16 +55,18 @@
<item name="android:windowBackground">@color/bg_default</item>
</style>
<style name="Theme.ownCloud.Toolbar" parent="BaseTheme.ownCloud.Toolbar">
<style name="Theme.ownCloud.ToolbarBase" parent="BaseTheme.ownCloud.Toolbar">
<item name="android:actionModeBackground">@color/action_mode_background</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>
<style name="Theme.ownCloud.Toolbar" parent="Theme.ownCloud.ToolbarBase" />
<style name="Theme.ownCloud.Toolbar.DrawerBase" parent="Theme.ownCloud.Toolbar">
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
<style name="Theme.ownCloud.Toolbar.Drawer" parent="Theme.ownCloud.Toolbar.DrawerBase"/>
<style name="Theme.ownCloud.Toolbar.Drawer" parent="Theme.ownCloud.Toolbar.DrawerBase" />
<!-- Launch screen -->
<style name="Theme.ownCloud.Launcher">

View file

@ -24,4 +24,20 @@
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
<style name="Theme.ownCloud.Toolbar" parent="Theme.ownCloud.ToolbarBase">
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
<style name="Theme.ownCloud" parent="Theme.ownCloudBase">
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
<style name="FallbackThemingTheme" parent="FallbackThemingThemeBase21">
<item name="android:windowLightNavigationBar">true</item>
<item name="android:navigationBarColor">@color/bg_default</item>
</style>
</resources>