Adjust quote view colors.

fork-5.53.8
Cody Henthorne 2022-04-06 14:54:53 -04:00
rodzic ce8dafd33d
commit 3088d7f182
3 zmienionych plików z 15 dodań i 3 usunięć

Wyświetl plik

@ -261,7 +261,17 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
}
quoteBarView.setBackgroundColor(ContextCompat.getColor(getContext(), outgoing || isStoryReply() ? R.color.core_white : android.R.color.transparent));
mainView.setBackgroundColor(ContextCompat.getColor(getContext(), preview || (!outgoing && isStoryReply()) ? R.color.quote_preview_background : R.color.quote_view_background));
int mainViewColor;
if (preview) {
mainViewColor = R.color.quote_preview_background;
} else if (!outgoing && isStoryReply()) {
mainViewColor = R.color.quote_incoming_story_background;
} else {
mainViewColor = R.color.quote_view_background;
}
mainView.setBackgroundColor(ContextCompat.getColor(getContext(), mainViewColor));
}
private boolean isStoryReply() {

Wyświetl plik

@ -166,7 +166,8 @@
<color name="quote_view_background">@color/transparent_black_40</color>
<color name="conversation_item_outgoing_footer_fg">@color/transparent_white_60</color>
<color name="quote_preview_background">@color/core_grey_80</color>
<color name="quote_preview_background">@color/core_grey_60</color>
<color name="quote_incoming_story_background">@color/core_grey_80</color>
<color name="react_with_any_background">@color/core_grey_75</color>
<color name="react_with_any_search_background">@color/core_grey_65</color>

Wyświetl plik

@ -166,7 +166,8 @@
<color name="quote_view_background">@color/transparent_white_60</color>
<color name="conversation_item_outgoing_footer_fg">@color/transparent_white_80</color>
<color name="quote_preview_background">#f2f2f2</color>
<color name="quote_preview_background">@color/core_grey_15</color>
<color name="quote_incoming_story_background">#f2f2f2</color>
<color name="react_with_any_background">@color/core_white</color>
<color name="react_with_any_search_background">@color/core_grey_05</color>