From 13121e98696e05b849cae30b646dc572296155ba Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Fri, 14 Jan 2022 23:07:14 +0100 Subject: [PATCH] Also colour scaler with card colour --- .../java/protect/card_locker/LoyaltyCardViewActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java index 66b19ddae..79d11e440 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java @@ -565,8 +565,10 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements storeName.setTextColor(textColor); landscapeToolbar.setTitleTextColor(textColor); - // Also apply colours to buttons + // Also apply colours to UI elements int darkenedColor = ColorUtils.blendARGB(backgroundHeaderColor, Color.BLACK, 0.1f); + barcodeScaler.setProgressTintList(ColorStateList.valueOf(darkenedColor)); + barcodeScaler.setThumbTintList(ColorStateList.valueOf(darkenedColor)); maximizeButton.setBackgroundColor(darkenedColor); minimizeButton.setBackgroundColor(darkenedColor); bottomSheetButton.setBackgroundColor(darkenedColor);