From 996f0b22b9f98d424dbfee12f022109555d3ab5b Mon Sep 17 00:00:00 2001 From: sk Date: Thu, 20 Jul 2023 23:39:11 +0200 Subject: [PATCH] use theme color for alt badge text --- mastodon/src/main/res/layout/display_item_gifv.xml | 2 +- mastodon/src/main/res/layout/display_item_video.xml | 2 +- mastodon/src/main/res/layout/overlay_image_alt_text.xml | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mastodon/src/main/res/layout/display_item_gifv.xml b/mastodon/src/main/res/layout/display_item_gifv.xml index 3ac0a39b0..c8f65e633 100644 --- a/mastodon/src/main/res/layout/display_item_gifv.xml +++ b/mastodon/src/main/res/layout/display_item_gifv.xml @@ -33,7 +33,7 @@ android:layout_marginEnd="4dp" android:importantForAccessibility="no" android:textAppearance="@style/m3_label_large" - android:textColor="#FFF" + android:textColor="?colorM3DarkOnSurface" android:gravity="center" android:includeFontPadding="false" android:background="@drawable/bg_image_alt_overlay" diff --git a/mastodon/src/main/res/layout/display_item_video.xml b/mastodon/src/main/res/layout/display_item_video.xml index 38bfbd4d2..5cd00b867 100644 --- a/mastodon/src/main/res/layout/display_item_video.xml +++ b/mastodon/src/main/res/layout/display_item_video.xml @@ -34,7 +34,7 @@ android:layout_marginEnd="4dp" android:importantForAccessibility="no" android:textAppearance="@style/m3_label_large" - android:textColor="#FFF" + android:textColor="?colorM3DarkOnSurface" android:gravity="center" android:includeFontPadding="false" android:background="@drawable/bg_image_alt_overlay" diff --git a/mastodon/src/main/res/layout/overlay_image_alt_text.xml b/mastodon/src/main/res/layout/overlay_image_alt_text.xml index a92cd56d0..616103359 100644 --- a/mastodon/src/main/res/layout/overlay_image_alt_text.xml +++ b/mastodon/src/main/res/layout/overlay_image_alt_text.xml @@ -22,7 +22,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/m3_label_large" - android:textColor="?colorGray25" + android:textColor="?colorM3DarkOnSurface" android:gravity="center" android:includeFontPadding="false" android:paddingHorizontal="6dp" @@ -36,7 +36,7 @@ android:layout_height="40dp" android:layout_gravity="end|top" android:src="@drawable/ic_baseline_close_24" - android:tint="#FFF" + android:tint="?colorM3DarkOnSurface" android:background="?android:actionBarItemBackground"/>