Better status and navigation bar colors.

This commit is contained in:
Anton Chekulaev 2020-08-25 20:21:08 +10:00
parent 810afe8e7e
commit 2252dea0a1
5 changed files with 6 additions and 8 deletions

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!-- TODO: AC These values should not be hardcoded here or use any "notnight" color resources.
The light theme should be defined in the main "themes.xml" file. -->
<style name="Theme.Session.DayNight"> <style name="Theme.Session.DayNight">
<item name="android:navigationBarColor">@color/gray65</item> <item name="android:navigationBarColor">?android:navigationBarColor</item>
<item name="android:statusBarColor">@color/accent</item> <item name="android:statusBarColor">@color/transparent</item>
<!-- <item name="android:statusBarColor">?colorAccent</item>-->
<item name="android:windowLightStatusBar">true</item>
<item name="android:textColorHint">@color/gray50</item> <item name="android:textColorHint">@color/gray50</item>
<item name="home_gradient_start">#00FFFFFF</item> <item name="home_gradient_start">#00FFFFFF</item>
@ -17,7 +17,7 @@
<style name="Theme.TextSecure.DayNight"> <style name="Theme.TextSecure.DayNight">
<item name="android:navigationBarColor">@color/gray78</item> <item name="android:navigationBarColor">?android:navigationBarColor</item>
<item name="theme_type">light</item> <item name="theme_type">light</item>
<!-- <item name="actionBarTabBarStyle">@style/TextSecure.LightActionBar.TabBar</item>--> <!-- <item name="actionBarTabBarStyle">@style/TextSecure.LightActionBar.TabBar</item>-->

View File

@ -88,7 +88,7 @@
<item name="android:colorBackground">#121212</item> <item name="android:colorBackground">#121212</item>
<item name="android:windowBackground">?android:colorBackground</item> <item name="android:windowBackground">?android:colorBackground</item>
<item name="android:navigationBarColor">?android:colorBackground</item> <item name="android:navigationBarColor">?android:colorBackground</item>
<item name="android:statusBarColor">?android:colorBackground</item> <item name="android:statusBarColor">?colorPrimary</item>
</style> </style>
<style name="Theme.Session.ForceDark.NoActionBar"> <style name="Theme.Session.ForceDark.NoActionBar">
<item name="windowActionBar">false</item> <item name="windowActionBar">false</item>

View File

@ -129,8 +129,6 @@ public class MediaSendFragment extends Fragment implements ViewTreeObserver.OnGl
@Override @Override
public @Nullable View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { public @Nullable View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
// return ThemeUtil.getThemedInflater(requireActivity(), inflater, R.style.TextSecure_DarkTheme)
// .inflate(R.layout.mediasend_fragment, container, false);
return inflater.inflate(R.layout.mediasend_fragment, container, false); return inflater.inflate(R.layout.mediasend_fragment, container, false);
} }