From: Damyan Ivanov Date: Wed, 13 May 2020 18:32:03 +0000 (+0300) Subject: themed color for disabled text X-Git-Tag: v0.13.0~15 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger-staging.git;a=commitdiff_plain;h=68c8402016bad040242894c778670649fc880421 themed color for disabled text --- 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;