Add background to sensitive media button (#3939)

Using the same background and margin as the ALT button.

Fixes #3772
This commit is contained in:
Angelo Suzuki 2023-08-08 23:08:35 +02:00 committed by GitHub
parent 41951c906c
commit bc310ca3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -16,14 +16,15 @@
android:id="@+id/status_sensitive_media_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.7"
android:layout_margin="3dp"
android:background="@drawable/media_warning_bg"
android:contentDescription="@null"
android:padding="@dimen/status_sensitive_media_button_padding"
android:visibility="gone"
app:layout_constraintStart_toStartOf="@+id/status_media_preview_container"
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
app:srcCompat="@drawable/ic_eye_24dp"
app:tint="@color/white" />
app:tint="?android:attr/textColorSecondary" />
<TextView
android:id="@+id/status_sensitive_media_warning"

View File

@ -191,14 +191,15 @@
android:id="@+id/status_sensitive_media_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.7"
android:layout_margin="3dp"
android:background="@drawable/media_warning_bg"
android:contentDescription="@null"
android:padding="@dimen/status_sensitive_media_button_padding"
android:visibility="gone"
app:layout_constraintLeft_toLeftOf="@+id/status_media_preview_container"
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
app:srcCompat="@drawable/ic_eye_24dp"
app:tint="@color/white"
app:tint="?android:attr/textColorSecondary"
tools:visibility="visible" />
<TextView