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
This commit is contained in:
Michael W
2024-12-26 13:47:53 +01:00
parent 6e9a803f1c
commit 3788b9d318
9 changed files with 17 additions and 12 deletions

View File

@@ -15,6 +15,6 @@
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/white" />
<corners android:radius="2dp" />
</shape>
<solid android:color="@color/attachment_bg_color" />
<corners android:radius="@dimen/attachment_rounded_corner_radius" />
</shape>

View File

@@ -15,6 +15,6 @@
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/white" />
<solid android:color="@color/attachment_bg_color" />
<corners android:radius="@dimen/attachment_rounded_corner_radius" />
</shape>
</shape>

View File

@@ -15,6 +15,6 @@
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@android:color/white" />
<corners android:radius="2dp" />
</shape>
<solid android:color="@color/attachment_bg_color" />
<corners android:radius="@dimen/attachment_rounded_corner_radius" />
</shape>

View File

@@ -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">
<com.android.messaging.ui.AudioAttachmentView
android:id="@+id/audio_attachment_view"

View File

@@ -23,4 +23,5 @@
android:minWidth="@dimen/single_attachment_min_dimen"
android:minHeight="@dimen/single_attachment_min_dimen"
android:scaleType="centerCrop"
android:adjustViewBounds="true" />
android:adjustViewBounds="true"
app:cornerRadius="@dimen/attachment_rounded_corner_radius"/>

View File

@@ -17,7 +17,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/attachment_chooser_vcard_background">
android:background="@drawable/attachment_vcard_preview_background">
<com.android.messaging.ui.PersonItemView
android:id="@+id/vcard_attachment_view"

View File

@@ -23,4 +23,6 @@
<color name="compose_send_text_background_color">@*android:color/system_neutral1_600</color>
<color name="fab_fg_color">@android:color/black</color>
<color name="attachment_bg_color">@android:color/system_neutral1_800</color>
</resources>

View File

@@ -100,7 +100,7 @@
<!-- Videos in the message list view should at least be this big in the smallest dimension -->
<dimen name="video_message_min_size">320dp</dimen>
<dimen name="attachment_rounded_corner_radius">3dp</dimen>
<dimen name="attachment_rounded_corner_radius">16dp</dimen>
<dimen name="participant_list_text_size">18sp</dimen>
<dimen name="people_and_options_header_text_size">16sp</dimen>
<dimen name="image_attachment_fallback_width">240dp</dimen>

View File

@@ -25,4 +25,6 @@
<color name="compose_send_text_background_color">@android:color/white</color>
<color name="fab_fg_color">@android:color/white</color>
<color name="attachment_bg_color">@android:color/system_neutral1_0</color>
</resources>