Added custom boolean config option to set notification bar color the dark version of Linphone's primary's
This commit is contained in:
parent
84f3d4ebd9
commit
7dc5050142
3 changed files with 11 additions and 0 deletions
|
@ -160,6 +160,14 @@ public class StatusFragment extends Fragment {
|
|||
mIsInCall = false;
|
||||
}
|
||||
|
||||
if (activity.getResources()
|
||||
.getBoolean(R.bool.set_notification_bar_background_color_to_primary)) {
|
||||
Window window = activity.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||
window.setStatusBarColor(ContextCompat.getColor(activity, R.color.colorADark));
|
||||
}
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorA">#ff5e00</color>
|
||||
<!-- You can use https://material.io/design/color/#tools-for-picking-colors to get dark color value from primary -->
|
||||
<color name="colorADark">#e65000</color>
|
||||
<color name="colorB">#000000</color>
|
||||
<color name="colorC">#444444</color>
|
||||
<color name="colorD">#808080</color>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<bool name="force_use_of_linphone_friends">false</bool>
|
||||
<bool name="use_linphone_tag">true</bool>
|
||||
<bool name="hide_bottom_bar_on_second_level_views">true</bool>
|
||||
<bool name="set_notification_bar_background_color_to_primary">true</bool>
|
||||
|
||||
<!-- Time -->
|
||||
<string name="history_date_format">EEE, d MMM</string>
|
||||
|
|
Loading…
Reference in a new issue