summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-15 18:09:39 +0100
committercyBerta <cyberta@riseup.net>2021-11-15 18:09:39 +0100
commit2dd1e9f5bed2c5d1bf7158f674d6f49ac0fd6ed7 (patch)
tree4dcdde27f15282ad0097e1394144cfd095a995fd /app/src/main
parent31ef0e2a1b39a2aaa9e8b43609f6786e31e44eeb (diff)
change button text color depending on enabled state
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/res/color/button_color.xml5
-rw-r--r--app/src/main/res/values/colors.xml1
-rw-r--r--app/src/main/res/values/styles.xml2
3 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/res/color/button_color.xml b/app/src/main/res/color/button_color.xml
new file mode 100644
index 00000000..f7fed335
--- /dev/null
+++ b/app/src/main/res/color/button_color.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:color="@color/colorFontBtnEnabled" android:state_enabled="true"/>
+ <item android:color="@color/colorFontBtn"/>
+</selector> \ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index f1da0785..c1039f70 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -40,6 +40,7 @@
<color name="colorActionBarSubtitleFont">@color/black800</color>
<color name="colorEipFragmentFont">@color/black800</color>
<color name="colorFontBtn">@color/black800</color>
+ <color name="colorFontBtnEnabled">@color/white</color>
<color name="colorWarning">#B33A3A</color>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 9b05d3fe..df08916b 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -65,7 +65,7 @@
<item name="android:background">@drawable/cust_button_primary</item>
<item name="android:height">36dp</item>
<item name="android:minWidth">75dp</item>
- <item name="android:textColor">@color/colorFontBtn</item>
+ <item name="android:textColor">@color/button_color</item>
</style>
<style name="BitmaskActivity">