forked from mirror/monocles_chat_clean
Set navigation bar color to dark on dark theme (#3091)
* Allow overriding ConversationsTheme.Dark This change splits the dark theme style into two styles - base that stays the same in all configurations and Dark - the original - that can be overridden in specific configurations to add version specific styles. * Set navigation bar color to dark on dark theme Use secondary background color as navigation bar color when using dark theme. This avoids mismatched white colors on certain system themes.
This commit is contained in:
parent
e26a1a77a3
commit
1f1b14e439
2 changed files with 9 additions and 1 deletions
6
src/main/res/values-v21/themes.xml
Normal file
6
src/main/res/values-v21/themes.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="ConversationsTheme.Dark" parent="ConversationsTheme.Dark.Base">
|
||||
<item name="android:navigationBarColor">@color/grey900</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -99,7 +99,9 @@
|
|||
<item type="reference" name="icon_enable_undecided_device">@drawable/ic_new_releases_black_24dp</item>
|
||||
</style>
|
||||
|
||||
<style name="ConversationsTheme.Dark" parent="Theme.AppCompat.NoActionBar">
|
||||
<style name="ConversationsTheme.Dark" parent="ConversationsTheme.Dark.Base" />
|
||||
|
||||
<style name="ConversationsTheme.Dark.Base" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="colorPrimary">@color/green800</item>
|
||||
<item name="colorPrimaryDark">@color/green900</item>
|
||||
<item name="colorAccent">@color/blue_a100</item>
|
||||
|
|
Loading…
Reference in a new issue