summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-15 16:02:09 +0100
committercyBerta <cyberta@riseup.net>2021-11-15 16:02:09 +0100
commit427a41a35205b1948da37727eb21b66e2c518b0c (patch)
tree2716dae021bf9432bbc678dfac26d5894047038f
parent79c01db669fc68b1071f0c2e62eae1e4be66bbb8 (diff)
tweak an rename main button higlight colores
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/views/MainButton.java4
-rw-r--r--app/src/main/res/layout/v_main_btn.xml2
-rw-r--r--app/src/main/res/values/colors.xml3
3 files changed, 5 insertions, 4 deletions
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 b12f2b00..c5ac4544 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
@@ -106,9 +106,9 @@ public class MainButton extends RelativeLayout {
if (this.isError != isError) {
@DrawableRes int drawableResource = isOn ? R.drawable.on_off_btn_start_2_enabled : R.drawable.on_off_btn_start_2_disabled;
if (!isError) {
- setImageWithTint(shadowLight, drawableResource, R.color.colorSecondary);
+ setImageWithTint(shadowLight, drawableResource, R.color.colorMainBtnHighlight);
} else {
- setImageWithTint(shadowLight, drawableResource, R.color.colorWarning);
+ setImageWithTint(shadowLight, drawableResource, R.color.colorMainBtnError);
}
this.isError = isError;
}
diff --git a/app/src/main/res/layout/v_main_btn.xml b/app/src/main/res/layout/v_main_btn.xml
index 259edb5b..c4c7a600 100644
--- a/app/src/main/res/layout/v_main_btn.xml
+++ b/app/src/main/res/layout/v_main_btn.xml
@@ -13,7 +13,7 @@
android:background="@drawable/main_btn_glow"
tools:visibility="visible"
android:visibility="gone"
- android:backgroundTint="@color/colorSecondary"
+ android:backgroundTint="@color/colorMainBtnHighlight"
/>
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 4b77decb..bba7f1b5 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -7,7 +7,8 @@
<color name="colorError">#ef9a9a</color>
<color name="colorSuccess">#a5d6a7</color>
<color name="colorDisabled">#AAAAAA</color>
- <color name="colorSecondary">#03DAC6</color>
+ <color name="colorMainBtnHighlight">#03DAC6</color>
+ <color name="colorMainBtnError">#eF2222</color>
<color name="black800">#424242</color>
<color name="black800_secondary">#3b3b3b</color>