From 918c5d997a3e8a39b61b484b18701acaeb36160d Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 5 Aug 2023 22:39:39 +0200 Subject: use brighter start button in initial setup flow --- app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java | 4 +--- app/src/main/res/drawable/button_setup_circle_progress_pressed.xml | 3 +-- app/src/main/res/drawable/button_setup_circle_progress_released.xml | 3 +-- app/src/main/res/drawable/button_setup_circle_start_pressed.xml | 3 +-- app/src/main/res/drawable/button_setup_circle_start_released.xml | 3 +-- 5 files changed, 5 insertions(+), 11 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java b/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java index 2fcc036e..e322e6c6 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java @@ -61,13 +61,11 @@ public class MainButton extends RelativeLayout { } public void setCustomDrawable(@DrawableRes int drawableResource) { - // Drawable drawable = ContextCompat.getDrawable(getContext(), drawableResource); - Drawable drawable = getContext().getDrawable(drawableResource); + Drawable drawable = ContextCompat.getDrawable(getContext(), drawableResource); if (drawable == null) { return; } - drawable.setColorFilter(ContextCompat.getColor(getContext(), R.color.colorPrimaryLight), PorterDuff.Mode.MULTIPLY); button.setImageDrawable(drawable); button.setTag("button_setup_circle_custom"); } diff --git a/app/src/main/res/drawable/button_setup_circle_progress_pressed.xml b/app/src/main/res/drawable/button_setup_circle_progress_pressed.xml index 9f0021ef..d83a43cb 100644 --- a/app/src/main/res/drawable/button_setup_circle_progress_pressed.xml +++ b/app/src/main/res/drawable/button_setup_circle_progress_pressed.xml @@ -26,7 +26,7 @@ android:bottom="12dp" > - + @@ -51,7 +51,6 @@ - + @@ -52,7 +52,6 @@ - + @@ -38,7 +38,6 @@ - + @@ -36,7 +36,6 @@