mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
tweak call message-type colors
This commit is contained in:
@@ -71,22 +71,21 @@ public class CallItemView extends FrameLayout {
|
||||
title.setText(isOutgoing? R.string.outgoing_call : R.string.incoming_call);
|
||||
}
|
||||
|
||||
int[] attrs;
|
||||
if (isOutgoing) {
|
||||
int[] attrs = new int[]{
|
||||
attrs = new int[]{
|
||||
R.attr.conversation_item_outgoing_text_primary_color,
|
||||
R.attr.conversation_item_outgoing_text_secondary_color,
|
||||
};
|
||||
try (TypedArray ta = getContext().obtainStyledAttributes(attrs)) {
|
||||
footer.setTextColor(ta.getColor(0, Color.BLACK));
|
||||
icon.setColorFilter(ta.getColor(0, Color.BLACK));
|
||||
}
|
||||
} else {
|
||||
int[] attrs = new int[]{
|
||||
attrs = new int[]{
|
||||
R.attr.conversation_item_incoming_text_primary_color,
|
||||
R.attr.conversation_item_incoming_text_secondary_color,
|
||||
};
|
||||
try (TypedArray ta = getContext().obtainStyledAttributes(attrs)) {
|
||||
footer.setTextColor(ta.getColor(0, Color.BLACK));
|
||||
}
|
||||
icon.setColorFilter(getResources().getColor(R.color.delta_accent_darker));
|
||||
}
|
||||
try (TypedArray ta = getContext().obtainStyledAttributes(attrs)) {
|
||||
icon.setColorFilter(ta.getColor(0, Color.BLACK));
|
||||
footer.setTextColor(ta.getColor(1, Color.BLACK));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user