From 08642d7bdb44b6d5881b119103f168434b05925f Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 6 Dec 2022 20:24:26 +0100 Subject: [PATCH] Use light/dark mode colors for image description text (#3003) * Use light/dark mode colors for image description text This is an accessibility issue -- in light mode (which should have dark text on a light background) the text color was hardcoded to light grey and the background color was a semi-transparent black. Fixes https://github.com/tuskyapp/Tusky/issues/2983. * Update app/src/main/res/drawable/ic_drag_indicator_horiz_24dp.xml Co-authored-by: Konrad Pozniak Co-authored-by: Konrad Pozniak --- app/src/main/res/drawable/description_bg_expanded.xml | 4 ++-- app/src/main/res/drawable/ic_drag_indicator_horiz_24dp.xml | 2 +- app/src/main/res/layout/fragment_view_image.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/drawable/description_bg_expanded.xml b/app/src/main/res/drawable/description_bg_expanded.xml index db2eebde..8a45cb7f 100644 --- a/app/src/main/res/drawable/description_bg_expanded.xml +++ b/app/src/main/res/drawable/description_bg_expanded.xml @@ -4,7 +4,7 @@ android:topLeftRadius="6dp" android:topRightRadius="6dp" /> - + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_drag_indicator_horiz_24dp.xml b/app/src/main/res/drawable/ic_drag_indicator_horiz_24dp.xml index eb611224..e8be67fe 100644 --- a/app/src/main/res/drawable/ic_drag_indicator_horiz_24dp.xml +++ b/app/src/main/res/drawable/ic_drag_indicator_horiz_24dp.xml @@ -4,6 +4,6 @@ - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_view_image.xml b/app/src/main/res/layout/fragment_view_image.xml index 93cf2def..e0bc90a8 100644 --- a/app/src/main/res/layout/fragment_view_image.xml +++ b/app/src/main/res/layout/fragment_view_image.xml @@ -70,7 +70,7 @@ android:paddingRight="8dp" android:paddingBottom="8dp" android:textAlignment="center" - android:textColor="#eee" + android:textColor="?android:textColorPrimary" android:textSize="?attr/status_text_medium" tools:text="Some media description which might get quite long so that it won't easily fit in one line" />