From 68c8402016bad040242894c778670649fc880421 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 13 May 2020 21:32:03 +0300 Subject: [PATCH] themed color for disabled text --- app/src/main/java/net/ktnx/mobileledger/utils/Colors.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java index c61d0144..fcb6d8b0 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java @@ -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 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; -- 2.39.5