]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/utils/Colors.java
themed color for disabled text
[mobile-ledger.git] / 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;