From 3788b9d318c58254d1bda027066621323385c8bf Mon Sep 17 00:00:00 2001 From: Michael W Date: Thu, 26 Dec 2024 13:47:53 +0100 Subject: [PATCH] Messaging: Style the attachments properly * With dark theme, they suddenly don't stand out from the background anymore * Give them more rounding but not as much as the chat bubbles Change-Id: I32c1036bda348e0c58e1cb37edbe9c7fc72309e7 --- res/drawable/attachment_audio_preview_background.xml | 6 +++--- res/drawable/attachment_image_placeholder_background.xml | 4 ++-- res/drawable/attachment_vcard_preview_background.xml | 6 +++--- res/layout/attachment_chooser_audio.xml | 2 +- res/layout/attachment_chooser_image.xml | 3 ++- res/layout/attachment_chooser_vcard.xml | 2 +- res/values-night/lineage_colors.xml | 2 ++ res/values/dimens.xml | 2 +- res/values/lineage_colors.xml | 2 ++ 9 files changed, 17 insertions(+), 12 deletions(-) diff --git a/res/drawable/attachment_audio_preview_background.xml b/res/drawable/attachment_audio_preview_background.xml index 8b62415..d2298cc 100644 --- a/res/drawable/attachment_audio_preview_background.xml +++ b/res/drawable/attachment_audio_preview_background.xml @@ -15,6 +15,6 @@ limitations under the License. --> - - - \ No newline at end of file + + + diff --git a/res/drawable/attachment_image_placeholder_background.xml b/res/drawable/attachment_image_placeholder_background.xml index b3315e8..d2298cc 100644 --- a/res/drawable/attachment_image_placeholder_background.xml +++ b/res/drawable/attachment_image_placeholder_background.xml @@ -15,6 +15,6 @@ limitations under the License. --> - + - \ No newline at end of file + diff --git a/res/drawable/attachment_vcard_preview_background.xml b/res/drawable/attachment_vcard_preview_background.xml index 8b62415..d2298cc 100644 --- a/res/drawable/attachment_vcard_preview_background.xml +++ b/res/drawable/attachment_vcard_preview_background.xml @@ -15,6 +15,6 @@ limitations under the License. --> - - - \ No newline at end of file + + + diff --git a/res/layout/attachment_chooser_audio.xml b/res/layout/attachment_chooser_audio.xml index ea2f431..48440f0 100644 --- a/res/layout/attachment_chooser_audio.xml +++ b/res/layout/attachment_chooser_audio.xml @@ -20,7 +20,7 @@ android:id="@+id/audio_attachment_background" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/attachment_chooser_audio_background"> + android:background="@drawable/attachment_audio_preview_background"> + android:adjustViewBounds="true" + app:cornerRadius="@dimen/attachment_rounded_corner_radius"/> diff --git a/res/layout/attachment_chooser_vcard.xml b/res/layout/attachment_chooser_vcard.xml index e6f1072..49541b9 100644 --- a/res/layout/attachment_chooser_vcard.xml +++ b/res/layout/attachment_chooser_vcard.xml @@ -17,7 +17,7 @@ + android:background="@drawable/attachment_vcard_preview_background"> @*android:color/system_neutral1_600 @android:color/black + + @android:color/system_neutral1_800 diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 1da1b9c..4d22628 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -100,7 +100,7 @@ 320dp - 3dp + 16dp 18sp 16sp 240dp diff --git a/res/values/lineage_colors.xml b/res/values/lineage_colors.xml index 54c5ceb..e52a6da 100644 --- a/res/values/lineage_colors.xml +++ b/res/values/lineage_colors.xml @@ -25,4 +25,6 @@ @android:color/white @android:color/white + + @android:color/system_neutral1_0