From f9531da568f70c740c95fda73a55e547e205fbb9 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Wed, 24 Apr 2024 17:52:22 +0530 Subject: [PATCH] Theme qr bottom sheet according to our palette --- .../sourceforge/opencamera/qr/QrImageAnalyzer.kt | 4 ++-- .../main/res/layout/qr_bottom_sheet_dialog.xml | 16 ++++++++-------- app/src/main/res/values-v21/styles.xml | 8 ++++++++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/net/sourceforge/opencamera/qr/QrImageAnalyzer.kt b/app/src/main/java/net/sourceforge/opencamera/qr/QrImageAnalyzer.kt index 47273a370..a1a8d7c5a 100644 --- a/app/src/main/java/net/sourceforge/opencamera/qr/QrImageAnalyzer.kt +++ b/app/src/main/java/net/sourceforge/opencamera/qr/QrImageAnalyzer.kt @@ -153,8 +153,8 @@ class QrImageAnalyzer(private val activity: Activity, private val scope: Corouti )?.let { DrawableCompat.wrap(it.mutate()).apply { DrawableCompat.setTint( - this, activity.getThemeColor( - com.google.android.material.R.attr.colorOnBackground + this, activity.getColor( + R.color.e_icon_color ) ) } diff --git a/app/src/main/res/layout/qr_bottom_sheet_dialog.xml b/app/src/main/res/layout/qr_bottom_sheet_dialog.xml index 318616b31..8ee7345a6 100644 --- a/app/src/main/res/layout/qr_bottom_sheet_dialog.xml +++ b/app/src/main/res/layout/qr_bottom_sheet_dialog.xml @@ -21,7 +21,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:tint="@color/qrcodeColorOnSurface" + app:tint="@color/e_icon_color" tools:ignore="ContentDescription" /> + app:tint="@color/e_icon_color" /> + app:tint="@color/e_icon_color" /> diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index a0a3b85ab..c9b8594da 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -14,6 +14,7 @@ @color/color_default_icon @style/customAlertDialog @color/color_default_background + @style/BottomSheetTheme + + + -- GitLab