Implement composer tweaks to allow for better contrast.
This commit is contained in:
parent
b6d1af3760
commit
a593bc0b7a
5 changed files with 11 additions and 18 deletions
|
@ -329,11 +329,11 @@ public class InputPanel extends LinearLayout
|
||||||
final int textHintColor;
|
final int textHintColor;
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
iconTint = getContext().getResources().getColor(R.color.signal_colorNeutralInverse);
|
iconTint = getContext().getResources().getColor(R.color.signal_colorOnSurface);
|
||||||
textColor = getContext().getResources().getColor(R.color.signal_colorNeutralInverse);
|
textColor = getContext().getResources().getColor(R.color.signal_colorOnSurface);
|
||||||
textHintColor = getContext().getResources().getColor(R.color.signal_colorNeutralVariantInverse);
|
textHintColor = getContext().getResources().getColor(R.color.signal_colorOnSurfaceVariant);
|
||||||
|
|
||||||
setBackground(new ColorDrawable(getContext().getResources().getColor(R.color.wallpaper_compose_background)));
|
setBackground(null);
|
||||||
composeContainer.setBackground(Objects.requireNonNull(ContextCompat.getDrawable(getContext(), R.drawable.compose_background_wallpaper)));
|
composeContainer.setBackground(Objects.requireNonNull(ContextCompat.getDrawable(getContext(), R.drawable.compose_background_wallpaper)));
|
||||||
quickAudioToggle.setColorFilter(iconTint);
|
quickAudioToggle.setColorFilter(iconTint);
|
||||||
quickCameraToggle.setColorFilter(iconTint);
|
quickCameraToggle.setColorFilter(iconTint);
|
||||||
|
|
|
@ -2277,6 +2277,8 @@ public class ConversationParentFragment extends Fragment
|
||||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||||
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
||||||
|
|
||||||
|
WindowUtil.setNavigationBarColor(requireActivity().getWindow(), 0);
|
||||||
|
WindowUtil.setLightNavigationBar(requireActivity().getWindow());
|
||||||
} else {
|
} else {
|
||||||
wallpaper.setImageDrawable(null);
|
wallpaper.setImageDrawable(null);
|
||||||
wallpaperDim.setVisibility(View.GONE);
|
wallpaperDim.setVisibility(View.GONE);
|
||||||
|
@ -2289,6 +2291,9 @@ public class ConversationParentFragment extends Fragment
|
||||||
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
|
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
|
||||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||||
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
||||||
|
|
||||||
|
WindowUtil.setNavigationBarColor(requireActivity().getWindow(), ContextCompat.getColor(requireContext(), R.color.signal_colorBackground));
|
||||||
|
WindowUtil.setLightNavigationBarFromTheme(requireActivity());
|
||||||
}
|
}
|
||||||
fragment.onWallpaperChanged(chatWallpaper);
|
fragment.onWallpaperChanged(chatWallpaper);
|
||||||
messageRequestBottomView.setWallpaperEnabled(chatWallpaper != null);
|
messageRequestBottomView.setWallpaperEnabled(chatWallpaper != null);
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<shape
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:shape="rectangle">
|
|
||||||
|
|
||||||
<solid
|
|
||||||
android:color="@color/signal_colorTransparent1" />
|
|
||||||
|
|
||||||
<corners
|
|
||||||
android:radius="20dp" />
|
|
||||||
|
|
||||||
</shape>
|
|
|
@ -4,7 +4,7 @@
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
|
|
||||||
<solid
|
<solid
|
||||||
android:color="@color/signal_colorTransparent5" />
|
android:color="@color/conversation_item_recv_bubble_color_wallpaper" />
|
||||||
|
|
||||||
<corners
|
<corners
|
||||||
android:radius="20dp" />
|
android:radius="20dp" />
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
<color name="conversation_item_recv_icon_color">@color/core_grey_25</color>
|
<color name="conversation_item_recv_icon_color">@color/core_grey_25</color>
|
||||||
<color name="conversation_item_quote_text_color">@color/core_grey_05</color>
|
<color name="conversation_item_quote_text_color">@color/core_grey_05</color>
|
||||||
<color name="conversation_item_recv_bubble_color_normal">@color/signal_colorSurfaceVariant</color>
|
<color name="conversation_item_recv_bubble_color_normal">@color/signal_colorSurfaceVariant</color>
|
||||||
<color name="conversation_item_recv_bubble_color_wallpaper">@color/signal_colorNeutral</color>
|
<color name="conversation_item_recv_bubble_color_wallpaper">#242424</color>
|
||||||
<color name="conversation_item_outgoing_audio_foreground_tint">@color/signal_colorNeutralInverse</color>
|
<color name="conversation_item_outgoing_audio_foreground_tint">@color/signal_colorNeutralInverse</color>
|
||||||
<color name="conversation_item_incoming_audio_foreground_tint_normal">@color/signal_colorOnSurface</color>
|
<color name="conversation_item_incoming_audio_foreground_tint_normal">@color/signal_colorOnSurface</color>
|
||||||
<color name="conversation_item_incoming_audio_foreground_tint_wallpaper">@color/signal_colorNeutralInverse</color>
|
<color name="conversation_item_incoming_audio_foreground_tint_wallpaper">@color/signal_colorNeutralInverse</color>
|
||||||
|
|
Loading…
Add table
Reference in a new issue