diff --git a/res/layout/conversation_item_footer.xml b/res/layout/conversation_item_footer.xml index 6d32daff5e..a2acc2eddb 100644 --- a/res/layout/conversation_item_footer.xml +++ b/res/layout/conversation_item_footer.xml @@ -65,7 +65,6 @@ android:id="@+id/footer_delivery_status" android:layout_width="20dp" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - app:iconColor="?attr/conversation_item_delivery_icon_color"/> + android:layout_gravity="center_vertical" /> diff --git a/res/layout/conversation_item_received.xml b/res/layout/conversation_item_received.xml index d5eee08bb9..036b00fac4 100644 --- a/res/layout/conversation_item_received.xml +++ b/res/layout/conversation_item_received.xml @@ -166,7 +166,9 @@ android:layout_marginBottom="@dimen/message_bubble_bottom_padding" android:clipChildren="false" android:clipToPadding="false" - app:footer_color="?conversation_item_received_text_secondary_color"/> + android:alpha="0.7" + app:footer_text_color="?conversation_item_received_text_secondary_color" + app:footer_icon_color="?conversation_item_received_text_secondary_color"/> diff --git a/res/layout/conversation_item_received_shared_contact.xml b/res/layout/conversation_item_received_shared_contact.xml index f22d28d767..0fec8a5bf6 100644 --- a/res/layout/conversation_item_received_shared_contact.xml +++ b/res/layout/conversation_item_received_shared_contact.xml @@ -6,4 +6,6 @@ android:layout_width="@dimen/media_bubble_default_dimens" android:layout_height="wrap_content" app:contact_titleColor="?conversation_item_received_text_primary_color" - app:contact_captionColor="?conversation_item_received_text_secondary_color" /> + app:contact_captionColor="?conversation_item_received_text_secondary_color" + app:contact_footerIconColor="?conversation_item_received_text_secondary_color" + app:contact_footerAlpha="0.7"/> diff --git a/res/layout/conversation_item_sent.xml b/res/layout/conversation_item_sent.xml index 5fdacfe4b5..f6ba5bb899 100644 --- a/res/layout/conversation_item_sent.xml +++ b/res/layout/conversation_item_sent.xml @@ -127,7 +127,8 @@ android:layout_marginBottom="@dimen/message_bubble_bottom_padding" android:clipChildren="false" android:clipToPadding="false" - app:footer_color="?conversation_item_sent_text_secondary_color"/> + app:footer_text_color="?attr/conversation_item_sent_text_secondary_color" + app:footer_icon_color="?attr/conversation_item_sent_icon_color"/> diff --git a/res/layout/conversation_item_sent_shared_contact.xml b/res/layout/conversation_item_sent_shared_contact.xml index 70b3430573..e53e97f80c 100644 --- a/res/layout/conversation_item_sent_shared_contact.xml +++ b/res/layout/conversation_item_sent_shared_contact.xml @@ -6,4 +6,5 @@ android:layout_width="@dimen/media_bubble_default_dimens" android:layout_height="wrap_content" app:contact_titleColor="?conversation_item_sent_text_primary_color" - app:contact_captionColor="?conversation_item_sent_text_secondary_color"/> + app:contact_captionColor="?conversation_item_sent_text_secondary_color" + app:contact_footerIconColor="?conversation_item_sent_icon_color"/> diff --git a/res/layout/conversation_item_thumbnail.xml b/res/layout/conversation_item_thumbnail.xml index e5fcb7f706..3876fa7e08 100644 --- a/res/layout/conversation_item_thumbnail.xml +++ b/res/layout/conversation_item_thumbnail.xml @@ -30,6 +30,7 @@ android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" android:layout_marginRight="@dimen/message_bubble_horizontal_padding" android:layout_marginBottom="@dimen/message_bubble_bottom_padding" - app:footer_color="@color/core_white"/> + app:footer_text_color="@color/core_white" + app:footer_icon_color="@color/core_white"/> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index bc3761eff1..5309ad5f71 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -71,6 +71,7 @@ + @@ -78,7 +79,6 @@ - @@ -265,6 +265,8 @@ + + @@ -273,7 +275,8 @@ - + + diff --git a/res/values/themes.xml b/res/values/themes.xml index c35309cc06..2af07fccd3 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -188,7 +188,7 @@ @color/core_light_60 #99000000 @color/white - #b3ffffff + #ffffff @color/core_light_60 @color/core_light_90 @color/core_light_60 @@ -196,7 +196,7 @@ @color/core_light_90 @drawable/sticky_date_header_background_light @color/core_light_60 - @color/core_light_45 + @color/core_light_45 @drawable/quick_camera_light @drawable/ic_mic_grey600_24dp @@ -287,7 +287,7 @@ @color/core_dark_30 #99ffffff @color/core_dark_05 - #b3efefef + #efefef @drawable/conversation_item_sent_indicator_text_shape_dark @color/core_light_35 @color/core_dark_30 @@ -296,7 +296,7 @@ @color/core_dark_05 @drawable/sticky_date_header_background_dark @color/core_dark_30 - @color/core_dark_60 + @color/core_dark_60 @drawable/contact_list_divider_dark diff --git a/src/org/thoughtcrime/securesms/components/ConversationItemFooter.java b/src/org/thoughtcrime/securesms/components/ConversationItemFooter.java index 790c8a9dc5..f3457875fe 100644 --- a/src/org/thoughtcrime/securesms/components/ConversationItemFooter.java +++ b/src/org/thoughtcrime/securesms/components/ConversationItemFooter.java @@ -60,7 +60,8 @@ public class ConversationItemFooter extends LinearLayout { if (attrs != null) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(attrs, R.styleable.ConversationItemFooter, 0, 0); - setColor(typedArray.getInt(R.styleable.ConversationItemFooter_footer_color, getResources().getColor(R.color.core_white))); + setTextColor(typedArray.getInt(R.styleable.ConversationItemFooter_footer_text_color, getResources().getColor(R.color.core_white))); + setIconColor(typedArray.getInt(R.styleable.ConversationItemFooter_footer_icon_color, getResources().getColor(R.color.core_white))); typedArray.recycle(); } } @@ -79,11 +80,15 @@ public class ConversationItemFooter extends LinearLayout { presentDeliveryStatus(messageRecord); } - public void setColor(int color) { + public void setTextColor(int color) { dateView.setTextColor(color); simView.setTextColor(color); + } + + public void setIconColor(int color) { timerView.setColorFilter(color); insecureIndicatorView.setColorFilter(color); + deliveryStatusView.setTint(color); } private void presentDate(@NonNull MessageRecord messageRecord, @NonNull Locale locale) { diff --git a/src/org/thoughtcrime/securesms/components/SharedContactView.java b/src/org/thoughtcrime/securesms/components/SharedContactView.java index 94435e2405..8d9beca377 100644 --- a/src/org/thoughtcrime/securesms/components/SharedContactView.java +++ b/src/org/thoughtcrime/securesms/components/SharedContactView.java @@ -91,11 +91,15 @@ public class SharedContactView extends LinearLayout implements RecipientModified TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(attrs, R.styleable.SharedContactView, 0, 0); int titleColor = typedArray.getInt(R.styleable.SharedContactView_contact_titleColor, Color.BLACK); int captionColor = typedArray.getInt(R.styleable.SharedContactView_contact_captionColor, Color.BLACK); + int iconColor = typedArray.getInt(R.styleable.SharedContactView_contact_footerIconColor, Color.BLACK); + float footerAlpha = typedArray.getFloat(R.styleable.SharedContactView_contact_footerAlpha, 1); typedArray.recycle(); nameView.setTextColor(titleColor); numberView.setTextColor(captionColor); - footer.setColor(captionColor); + footer.setTextColor(captionColor); + footer.setIconColor(iconColor); + footer.setAlpha(footerAlpha); } if (cornerMask.isLegacy()) {