]> git.ktnx.net Git - mobile-ledger.git/commitdiff
themed color for disabled text
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 13 May 2020 18:32:03 +0000 (21:32 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 May 2020 17:39:53 +0000 (17:39 +0000)
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java

index c61d0144fa251b9de618a53c46e063a8857985cf..fcb6d8b06fa0d745092a89e36bcf0e0d039af931 100644 (file)
@@ -54,7 +54,7 @@ public class Colors {
     @ColorInt
     public static int tableRowDarkBG;
     @ColorInt
-    public static int primary, defaultTextColor;
+    public static int primary, defaultTextColor, defaultTextColorDisabled;
     public static int profileThemeId = -1;
     public static MutableLiveData<Integer> themeWatch = new MutableLiveData<>(0);
     private static int[] themeIDs =
@@ -105,6 +105,7 @@ public class Colors {
         primary = tv.data;
         theme.resolveAttribute(R.attr.textColor, tv, true);
         defaultTextColor = tv.data;
+        defaultTextColorDisabled = 0x7f000000 | 0x00ffffff & defaultTextColor;
         theme.resolveAttribute(R.attr.colorAccent, tv, true);
         accent = tv.data;