Merge pull request #1450 from vector-im/feature/navigation_bar
Fix bad color contrast for navigation and status bar
This commit is contained in:
commit
e44963728f
|
@ -13,6 +13,8 @@ Bugfix 🐛:
|
||||||
- Switch theme is not fully taken into account without restarting the app
|
- Switch theme is not fully taken into account without restarting the app
|
||||||
- Temporary fix to show error when user is creating an account on matrix.org with userId containing only digits (#1410)
|
- Temporary fix to show error when user is creating an account on matrix.org with userId containing only digits (#1410)
|
||||||
- Reply composer overlay stays on screen too long after send (#1169)
|
- Reply composer overlay stays on screen too long after send (#1169)
|
||||||
|
- Fix navigation bar icon contrast on API in [21,27[ (#1342)
|
||||||
|
- Fix status bar icon contrast on API in [21,23[
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme.Light.v21" parent="AppTheme.Base.Light">
|
<style name="AppTheme.Light.v21" parent="AppTheme.Base.Light">
|
||||||
<item name="android:statusBarColor">@color/riotx_header_panel_background_light</item>
|
<!-- Use dark color, to have enough contrast with icons color. windowLightStatusBar is only available in API 23+ -->
|
||||||
<item name="android:navigationBarColor">@color/riotx_header_panel_background_light</item>
|
<item name="android:statusBarColor">@color/riotx_header_panel_background_dark</item>
|
||||||
|
<!-- Use dark color, to have enough contrast with icons color. windowLightNavigationBar is only available in API 27+ -->
|
||||||
|
<item name="android:navigationBarColor">@color/riotx_header_panel_background_dark</item>
|
||||||
|
|
||||||
<!-- enable window content transitions -->
|
<!-- enable window content transitions -->
|
||||||
<item name="android:windowContentTransitions">true</item>
|
<item name="android:windowContentTransitions">true</item>
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme.Status.v21" parent="AppTheme.Base.Status">
|
<style name="AppTheme.Status.v21" parent="AppTheme.Base.Status">
|
||||||
<item name="android:statusBarColor">@color/riotx_header_panel_background_light</item>
|
<!-- Use dark color, to have enough contrast with icons color. windowLightStatusBar is only available in API 23+ -->
|
||||||
<item name="android:navigationBarColor">@color/riotx_header_panel_background_light</item>
|
<item name="android:statusBarColor">@color/riotx_header_panel_background_dark</item>
|
||||||
|
<!-- Use dark color, to have enough contrast with icons color. windowLightNavigationBar is only available in API 27+ -->
|
||||||
|
<item name="android:navigationBarColor">@color/riotx_header_panel_background_dark</item>
|
||||||
|
|
||||||
<!-- enable window content transitions -->
|
<!-- enable window content transitions -->
|
||||||
<item name="android:windowContentTransitions">true</item>
|
<item name="android:windowContentTransitions">true</item>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme.Light.v23" parent="AppTheme.Light.v21">
|
<style name="AppTheme.Light.v23" parent="AppTheme.Light.v21">
|
||||||
|
<item name="android:statusBarColor">@color/riotx_header_panel_background_light</item>
|
||||||
<item name="android:windowLightStatusBar">true</item>
|
<item name="android:windowLightStatusBar">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme.Status.v23" parent="AppTheme.Status.v21">
|
<style name="AppTheme.Status.v23" parent="AppTheme.Status.v21">
|
||||||
<item name="android:windowLightStatusBar">false</item>
|
<item name="android:statusBarColor">@color/riotx_header_panel_background_light</item>
|
||||||
|
<item name="android:windowLightStatusBar">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppTheme.Status" parent="AppTheme.Status.v23"/>
|
<style name="AppTheme.Status" parent="AppTheme.Status.v23"/>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme.Light.v27" parent="AppTheme.Light.v23">
|
<style name="AppTheme.Light.v27" parent="AppTheme.Light.v23">
|
||||||
|
<item name="android:navigationBarColor">@color/riotx_header_panel_background_light</item>
|
||||||
<item name="android:windowLightNavigationBar">true</item>
|
<item name="android:windowLightNavigationBar">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme.Status.v27" parent="AppTheme.Status.v23">
|
<style name="AppTheme.Status.v27" parent="AppTheme.Status.v23">
|
||||||
|
<item name="android:navigationBarColor">@color/riotx_header_panel_background_light</item>
|
||||||
<item name="android:windowLightNavigationBar">true</item>
|
<item name="android:windowLightNavigationBar">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue