kopia lustrzana https://github.com/ryukoposting/Signal-Android
Adjust quote view colors.
rodzic
ce8dafd33d
commit
3088d7f182
|
@ -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));
|
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() {
|
private boolean isStoryReply() {
|
||||||
|
|
|
@ -166,7 +166,8 @@
|
||||||
|
|
||||||
<color name="quote_view_background">@color/transparent_black_40</color>
|
<color name="quote_view_background">@color/transparent_black_40</color>
|
||||||
<color name="conversation_item_outgoing_footer_fg">@color/transparent_white_60</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_background">@color/core_grey_75</color>
|
||||||
<color name="react_with_any_search_background">@color/core_grey_65</color>
|
<color name="react_with_any_search_background">@color/core_grey_65</color>
|
||||||
|
|
|
@ -166,7 +166,8 @@
|
||||||
|
|
||||||
<color name="quote_view_background">@color/transparent_white_60</color>
|
<color name="quote_view_background">@color/transparent_white_60</color>
|
||||||
<color name="conversation_item_outgoing_footer_fg">@color/transparent_white_80</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_background">@color/core_white</color>
|
||||||
<color name="react_with_any_search_background">@color/core_grey_05</color>
|
<color name="react_with_any_search_background">@color/core_grey_05</color>
|
||||||
|
|
Ładowanie…
Reference in New Issue