diff --git a/res/drawable-hdpi/ic_document.png b/res/drawable-hdpi/ic_document.png deleted file mode 100644 index c3d2ff8325..0000000000 Binary files a/res/drawable-hdpi/ic_document.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_document_large_dark.png b/res/drawable-hdpi/ic_document_large_dark.png new file mode 100644 index 0000000000..f17a5078a6 Binary files /dev/null and b/res/drawable-hdpi/ic_document_large_dark.png differ diff --git a/res/drawable-hdpi/ic_document_large_light.png b/res/drawable-hdpi/ic_document_large_light.png new file mode 100644 index 0000000000..1c3bd34be6 Binary files /dev/null and b/res/drawable-hdpi/ic_document_large_light.png differ diff --git a/res/drawable-hdpi/ic_document_small_dark.png b/res/drawable-hdpi/ic_document_small_dark.png new file mode 100644 index 0000000000..4142741f31 Binary files /dev/null and b/res/drawable-hdpi/ic_document_small_dark.png differ diff --git a/res/drawable-hdpi/ic_document_small_light.png b/res/drawable-hdpi/ic_document_small_light.png new file mode 100644 index 0000000000..a68e1c5a66 Binary files /dev/null and b/res/drawable-hdpi/ic_document_small_light.png differ diff --git a/res/drawable-mdpi/ic_document.png b/res/drawable-mdpi/ic_document.png deleted file mode 100644 index 3ae0e719e9..0000000000 Binary files a/res/drawable-mdpi/ic_document.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_document_large_dark.png b/res/drawable-mdpi/ic_document_large_dark.png new file mode 100644 index 0000000000..52f8d3654c Binary files /dev/null and b/res/drawable-mdpi/ic_document_large_dark.png differ diff --git a/res/drawable-mdpi/ic_document_large_light.png b/res/drawable-mdpi/ic_document_large_light.png new file mode 100644 index 0000000000..d0b6f2a2ff Binary files /dev/null and b/res/drawable-mdpi/ic_document_large_light.png differ diff --git a/res/drawable-mdpi/ic_document_small_dark.png b/res/drawable-mdpi/ic_document_small_dark.png new file mode 100644 index 0000000000..2dad4a5ddc Binary files /dev/null and b/res/drawable-mdpi/ic_document_small_dark.png differ diff --git a/res/drawable-mdpi/ic_document_small_light.png b/res/drawable-mdpi/ic_document_small_light.png new file mode 100644 index 0000000000..8972c8b626 Binary files /dev/null and b/res/drawable-mdpi/ic_document_small_light.png differ diff --git a/res/drawable-xhdpi/ic_document.png b/res/drawable-xhdpi/ic_document.png deleted file mode 100644 index f1d0df1e0a..0000000000 Binary files a/res/drawable-xhdpi/ic_document.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_document_large_dark.png b/res/drawable-xhdpi/ic_document_large_dark.png new file mode 100644 index 0000000000..cb4e3f6def Binary files /dev/null and b/res/drawable-xhdpi/ic_document_large_dark.png differ diff --git a/res/drawable-xhdpi/ic_document_large_light.png b/res/drawable-xhdpi/ic_document_large_light.png new file mode 100644 index 0000000000..24027f5450 Binary files /dev/null and b/res/drawable-xhdpi/ic_document_large_light.png differ diff --git a/res/drawable-xhdpi/ic_document_small_dark.png b/res/drawable-xhdpi/ic_document_small_dark.png new file mode 100644 index 0000000000..801b63381f Binary files /dev/null and b/res/drawable-xhdpi/ic_document_small_dark.png differ diff --git a/res/drawable-xhdpi/ic_document_small_light.png b/res/drawable-xhdpi/ic_document_small_light.png new file mode 100644 index 0000000000..d2378b1775 Binary files /dev/null and b/res/drawable-xhdpi/ic_document_small_light.png differ diff --git a/res/drawable-xxhdpi/ic_document.png b/res/drawable-xxhdpi/ic_document.png deleted file mode 100644 index 6c3c55ea4e..0000000000 Binary files a/res/drawable-xxhdpi/ic_document.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_document_large_dark.png b/res/drawable-xxhdpi/ic_document_large_dark.png new file mode 100644 index 0000000000..f6f21a9cdb Binary files /dev/null and b/res/drawable-xxhdpi/ic_document_large_dark.png differ diff --git a/res/drawable-xxhdpi/ic_document_large_light.png b/res/drawable-xxhdpi/ic_document_large_light.png new file mode 100644 index 0000000000..26c2172dba Binary files /dev/null and b/res/drawable-xxhdpi/ic_document_large_light.png differ diff --git a/res/drawable-xxhdpi/ic_document_small_dark.png b/res/drawable-xxhdpi/ic_document_small_dark.png new file mode 100644 index 0000000000..9b9e773af0 Binary files /dev/null and b/res/drawable-xxhdpi/ic_document_small_dark.png differ diff --git a/res/drawable-xxhdpi/ic_document_small_light.png b/res/drawable-xxhdpi/ic_document_small_light.png new file mode 100644 index 0000000000..4bf082e0d8 Binary files /dev/null and b/res/drawable-xxhdpi/ic_document_small_light.png differ diff --git a/res/drawable-xxxhdpi/ic_document.png b/res/drawable-xxxhdpi/ic_document.png deleted file mode 100644 index 2a9c56c586..0000000000 Binary files a/res/drawable-xxxhdpi/ic_document.png and /dev/null differ diff --git a/res/drawable-xxxhdpi/ic_document_large_dark.png b/res/drawable-xxxhdpi/ic_document_large_dark.png new file mode 100644 index 0000000000..911a1c2f49 Binary files /dev/null and b/res/drawable-xxxhdpi/ic_document_large_dark.png differ diff --git a/res/drawable-xxxhdpi/ic_document_large_light.png b/res/drawable-xxxhdpi/ic_document_large_light.png new file mode 100644 index 0000000000..fdcf64d6bb Binary files /dev/null and b/res/drawable-xxxhdpi/ic_document_large_light.png differ diff --git a/res/drawable-xxxhdpi/ic_document_small_dark.png b/res/drawable-xxxhdpi/ic_document_small_dark.png new file mode 100644 index 0000000000..182067089d Binary files /dev/null and b/res/drawable-xxxhdpi/ic_document_small_dark.png differ diff --git a/res/drawable-xxxhdpi/ic_document_small_light.png b/res/drawable-xxxhdpi/ic_document_small_light.png new file mode 100644 index 0000000000..e3aaf73f68 Binary files /dev/null and b/res/drawable-xxxhdpi/ic_document_small_light.png differ diff --git a/res/drawable/compose_background.xml b/res/drawable/compose_background.xml index b93c9edb7b..18b651b7f8 100644 --- a/res/drawable/compose_background.xml +++ b/res/drawable/compose_background.xml @@ -5,10 +5,10 @@ + android:color="?attr/conversation_input_outline_color" /> + android:color="?attr/conversation_input_background_color" /> diff --git a/res/drawable/message_bubble_background_received_alone.xml b/res/drawable/message_bubble_background.xml similarity index 100% rename from res/drawable/message_bubble_background_received_alone.xml rename to res/drawable/message_bubble_background.xml diff --git a/res/drawable/message_bubble_background_received_end.xml b/res/drawable/message_bubble_background_received_end.xml deleted file mode 100644 index 3e4e2c0562..0000000000 --- a/res/drawable/message_bubble_background_received_end.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - diff --git a/res/drawable/message_bubble_background_received_middle.xml b/res/drawable/message_bubble_background_received_middle.xml deleted file mode 100644 index e3888978ab..0000000000 --- a/res/drawable/message_bubble_background_received_middle.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - diff --git a/res/drawable/message_bubble_background_received_start.xml b/res/drawable/message_bubble_background_received_start.xml deleted file mode 100644 index 4c30cc7565..0000000000 --- a/res/drawable/message_bubble_background_received_start.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - diff --git a/res/drawable/message_bubble_background_sent_alone.xml b/res/drawable/message_bubble_background_sent_alone.xml deleted file mode 100644 index 6f19f4f16f..0000000000 --- a/res/drawable/message_bubble_background_sent_alone.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/res/drawable/message_bubble_background_sent_end.xml b/res/drawable/message_bubble_background_sent_end.xml deleted file mode 100644 index 5bc4597c03..0000000000 --- a/res/drawable/message_bubble_background_sent_end.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/res/drawable/message_bubble_background_sent_middle.xml b/res/drawable/message_bubble_background_sent_middle.xml deleted file mode 100644 index aea4264539..0000000000 --- a/res/drawable/message_bubble_background_sent_middle.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - diff --git a/res/drawable/message_bubble_background_sent_start.xml b/res/drawable/message_bubble_background_sent_start.xml deleted file mode 100644 index 4719d235f4..0000000000 --- a/res/drawable/message_bubble_background_sent_start.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - diff --git a/res/drawable/shared_contact_button_background_alone.xml b/res/drawable/shared_contact_button_background_alone.xml deleted file mode 100644 index 06420aa624..0000000000 --- a/res/drawable/shared_contact_button_background_alone.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/drawable/shared_contact_button_background_clustered_received.xml b/res/drawable/shared_contact_button_background_clustered_received.xml deleted file mode 100644 index 7d69d919a0..0000000000 --- a/res/drawable/shared_contact_button_background_clustered_received.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/drawable/shared_contact_button_background_clustered_sent.xml b/res/drawable/shared_contact_button_background_clustered_sent.xml deleted file mode 100644 index a8be01e7a9..0000000000 --- a/res/drawable/shared_contact_button_background_clustered_sent.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/res/drawable/sticky_date_header_background.xml b/res/drawable/sticky_date_header_background.xml index b015b381ba..e4fa232676 100644 --- a/res/drawable/sticky_date_header_background.xml +++ b/res/drawable/sticky_date_header_background.xml @@ -4,5 +4,5 @@ android:shape="rectangle"> - + \ No newline at end of file diff --git a/res/drawable/thumbnail_background.xml b/res/drawable/thumbnail_background.xml deleted file mode 100644 index 0aca471c00..0000000000 --- a/res/drawable/thumbnail_background.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/res/layout/conversation_activity_attachment_editor_stub.xml b/res/layout/conversation_activity_attachment_editor_stub.xml index a03fce40ea..5d6821b831 100644 --- a/res/layout/conversation_activity_attachment_editor_stub.xml +++ b/res/layout/conversation_activity_attachment_editor_stub.xml @@ -43,14 +43,25 @@ app:foregroundTintColor="@color/grey_500" app:backgroundTintColor="?conversation_item_bubble_background"/> - + + + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingLeft="@dimen/message_bubble_horizontal_padding" + android:paddingRight="@dimen/message_bubble_horizontal_padding" + android:background="?attr/conversation_item_bubble_background" + app:doc_titleColor="?attr/conversation_item_sent_text_primary_color" + app:doc_captionColor="?attr/conversation_item_sent_text_secondary_color"/> + diff --git a/res/layout/conversation_fragment.xml b/res/layout/conversation_fragment.xml index 5915ac2821..41eac4b702 100644 --- a/res/layout/conversation_fragment.xml +++ b/res/layout/conversation_fragment.xml @@ -9,6 +9,7 @@ android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingBottom="24dp" android:scrollbars="vertical" android:cacheColorHint="?conversation_background" android:clipChildren="false" @@ -25,7 +26,7 @@ android:paddingBottom="4dp" android:layout_marginTop="8dp" style="@style/Signal.Text.Caption" - android:textColor="@color/core_light_60" + android:textColor="?attr/conversation_item_sticky_date_text_color" android:textAllCaps="true" android:background="@drawable/sticky_date_header_background" android:elevation="9dp" diff --git a/res/layout/conversation_input_panel.xml b/res/layout/conversation_input_panel.xml index fed3003140..70e43f2207 100644 --- a/res/layout/conversation_input_panel.xml +++ b/res/layout/conversation_input_panel.xml @@ -62,8 +62,8 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical" - android:paddingLeft="14dp" - android:paddingStart="14dp" + android:layout_marginLeft="14dp" + android:layout_marginStart="14dp" android:background="@drawable/touch_highlight_background" android:contentDescription="@string/conversation_activity__emoji_toggle_description" /> @@ -72,8 +72,12 @@ android:id="@+id/embedded_text_editor" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_marginLeft="6dp" + android:layout_marginStart="6dp" + android:layout_marginRight="6dp" + android:layout_marginEnd="6dp" android:layout_marginTop="9dp" - android:layout_marginBottom="7dp" + android:layout_marginBottom="9dp" android:layout_gravity="center_vertical" android:layout_weight="1" android:nextFocusForward="@+id/send_button" diff --git a/res/layout/conversation_item_footer.xml b/res/layout/conversation_item_footer.xml index 41bcf973da..6d32daff5e 100644 --- a/res/layout/conversation_item_footer.xml +++ b/res/layout/conversation_item_footer.xml @@ -14,8 +14,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:layout_marginRight="3dp" - android:layout_marginEnd="3dp" + android:layout_marginRight="6dp" + android:layout_marginEnd="6dp" android:linksClickable="false" style="@style/Signal.Text.Caption.MessageSent" android:textColor="?conversation_item_sent_text_secondary_color" @@ -41,8 +41,10 @@ @@ -65,8 +65,7 @@ android:id="@+id/footer_delivery_status" android:layout_width="20dp" android:layout_height="wrap_content" - android:layout_marginLeft="6dp" - android:layout_marginStart="6dp" - android:layout_gravity="center_vertical" /> + android:layout_gravity="center_vertical" + app:iconColor="?attr/conversation_item_delivery_icon_color"/> diff --git a/res/layout/conversation_item_header.xml b/res/layout/conversation_item_header.xml index 9189f14964..7cccc8995b 100644 --- a/res/layout/conversation_item_header.xml +++ b/res/layout/conversation_item_header.xml @@ -1,16 +1,29 @@ - + android:paddingLeft="28dp" + android:paddingRight="28dp"> + + + + + + diff --git a/res/layout/conversation_item_last_seen.xml b/res/layout/conversation_item_last_seen.xml index 5066a57dc0..e36d452d7d 100644 --- a/res/layout/conversation_item_last_seen.xml +++ b/res/layout/conversation_item_last_seen.xml @@ -7,12 +7,12 @@ android:orientation="vertical" android:paddingTop="24dp" android:paddingBottom="20dp"> - + diff --git a/res/layout/conversation_item_received.xml b/res/layout/conversation_item_received.xml index aae2d8199e..91870ed9aa 100644 --- a/res/layout/conversation_item_received.xml +++ b/res/layout/conversation_item_received.xml @@ -36,23 +36,29 @@ android:cropToPadding="true" android:contentDescription="@string/conversation_item_received__contact_photo_description" /> - + + @@ -130,6 +138,8 @@ android:layout="@layout/conversation_item_received_document" android:layout_width="210dp" android:layout_height="wrap_content" + android:layout_marginTop="@dimen/message_bubble_top_padding" + android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" android:layout_marginRight="@dimen/message_bubble_horizontal_padding" /> @@ -137,6 +147,8 @@ android:id="@+id/conversation_item_body" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="@dimen/message_bubble_top_padding" + android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" android:layout_marginRight="@dimen/message_bubble_horizontal_padding" style="@style/Signal.Text.Body" @@ -149,14 +161,17 @@ android:id="@+id/conversation_item_footer" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_marginTop="-4dp" android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" android:layout_marginRight="@dimen/message_bubble_horizontal_padding" - android:layout_marginTop="@dimen/message_bubble_footer_top_padding" - android:elevation="9dp" android:layout_marginBottom="@dimen/message_bubble_bottom_padding" + android:clipChildren="false" + android:clipToPadding="false" app:footer_color="?conversation_item_received_text_secondary_color"/> - + + + - - + android:orientation="vertical" + android:clipToPadding="false" + android:clipChildren="false"> - + - + - + - + - + - + - + - + - + - + + + + + - + - + - - - - - + diff --git a/res/layout/conversation_list_item_view.xml b/res/layout/conversation_list_item_view.xml index eb322f3f7f..203cbd872f 100644 --- a/res/layout/conversation_list_item_view.xml +++ b/res/layout/conversation_list_item_view.xml @@ -107,7 +107,7 @@ android:layout_width="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" - android:layout_alignParentTop="true" + android:layout_alignBaseline="@+id/from" android:layout_above="@id/subject" style="@style/Signal.Text.Caption" android:textColor="?attr/conversation_list_item_date_color" @@ -149,7 +149,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - app:iconColor="?attr/conversation_list_item_subject_color"/> + app:iconColor="?attr/conversation_list_item_delivery_icon_color"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/conversation_shared_contact_item_sent.xml b/res/layout/conversation_shared_contact_item_sent.xml deleted file mode 100644 index f06585770d..0000000000 --- a/res/layout/conversation_shared_contact_item_sent.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/delivery_status_view.xml b/res/layout/delivery_status_view.xml index 1a94495770..4a1433f19b 100644 --- a/res/layout/delivery_status_view.xml +++ b/res/layout/delivery_status_view.xml @@ -2,7 +2,7 @@ - + android:src="?attachment_document_icon_large"/> diff --git a/res/layout/invite_activity.xml b/res/layout/invite_activity.xml index f534a9edc9..c9f4b0c16c 100644 --- a/res/layout/invite_activity.xml +++ b/res/layout/invite_activity.xml @@ -40,7 +40,7 @@ android:layout_height="wrap_content" android:minLines="2" tools:text="Let's switch to Signal: https://sgnl.link/asdfdfsa" - android:background="@drawable/message_bubble_background_received_alone" + android:background="@drawable/message_bubble_background" android:paddingTop="10dp" android:paddingBottom="10dp" android:paddingLeft="10dp" diff --git a/res/layout/message_recipient_list_item.xml b/res/layout/message_recipient_list_item.xml index 6544c591d3..42e02a31b4 100644 --- a/res/layout/message_recipient_list_item.xml +++ b/res/layout/message_recipient_list_item.xml @@ -29,6 +29,7 @@ android:layout_toRightOf="@id/contact_photo_image" android:layout_toEndOf="@id/contact_photo_image" android:layout_centerVertical="true" + android:gravity="center_vertical" android:orientation="horizontal"> diff --git a/res/layout/quote_view.xml b/res/layout/quote_view.xml index 60d1149b36..942922aa4e 100644 --- a/res/layout/quote_view.xml +++ b/res/layout/quote_view.xml @@ -14,10 +14,10 @@ + android:layout_height="wrap_content"> @@ -69,7 +69,7 @@ android:layout_marginEnd="4dp" android:paddingLeft="-4dp" android:paddingStart="-4dp" - android:src="@drawable/ic_document" /> + android:src="?attr/attachment_document_icon_small" /> @@ -78,7 +78,7 @@ android:ellipsize="end" android:fontFamily="sans-serif-medium" android:textColor="@color/core_blue" - android:background="@drawable/shared_contact_button_background_alone" + android:background="?attr/shared_contact_item_button_color" android:foreground="?attr/selectableItemBackground" tools:text="Add to Contacts"/> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 1335f8f737..0b6db57e42 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -1,10 +1,15 @@ + + + + + @@ -23,6 +28,8 @@ + + @@ -68,6 +75,11 @@ + + + + + @@ -158,6 +170,7 @@ + @@ -271,4 +284,7 @@ + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 97dff6ad7c..114af1dd36 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -23,11 +23,9 @@ 1.5dp 12dp 6dp - 6dp 6dp - 48dp + 32dp 8dp - 4dp 24dp 24dp 210dp diff --git a/res/values/themes.xml b/res/values/themes.xml index a1a6286e69..95936da31d 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -126,10 +126,15 @@ @style/AppCompatAlertDialogStyleLight @style/AppCompatDialogStyleLight + @color/white + @drawable/ic_document_small_light + @drawable/ic_document_large_light + @drawable/conversation_list_item_background @color/core_light_90 @color/core_light_60 + @color/core_light_35 @color/core_light_60 @drawable/conversation_list_divider_shape @@ -141,6 +146,8 @@ @color/core_white #22000000 #ff111111 + @color/core_light_02 + @color/core_light_10 @drawable/ic_send_sms_insecure @drawable/ic_send_push @color/white @@ -186,6 +193,11 @@ @color/core_light_60 @color/core_light_90 @color/core_light_60 + @color/core_light_45 + @color/core_light_90 + @color/core_light_02 + @color/core_light_60 + @color/core_light_45 @drawable/quick_camera_light @drawable/ic_mic_grey600_24dp @@ -244,7 +256,6 @@