X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Futils%2FColors.java;fp=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Futils%2FColors.java;h=8049d76ba2fa388ef9cfb6c9789da18c12ad1a20;hp=fcb6d8b06fa0d745092a89e36bcf0e0d039af931;hb=7e5e80f46a3f2259808b2b8bd7293f1bb8a26f06;hpb=a2299fe8eddcbf5577a1576f899ddc28c8df00d5 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 fcb6d8b0..8049d76b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java @@ -57,6 +57,7 @@ public class Colors { public static int primary, defaultTextColor, defaultTextColorDisabled; public static int profileThemeId = -1; public static MutableLiveData themeWatch = new MutableLiveData<>(0); + public static int errorTextColor; private static int[] themeIDs = {R.style.AppTheme_NoActionBar_000, R.style.AppTheme_NoActionBar_005, R.style.AppTheme_NoActionBar_010, R.style.AppTheme_NoActionBar_015, @@ -108,6 +109,8 @@ public class Colors { defaultTextColorDisabled = 0x7f000000 | 0x00ffffff & defaultTextColor; theme.resolveAttribute(R.attr.colorAccent, tv, true); accent = tv.data; + theme.resolveAttribute(R.attr.errorTextColor, tv, true); + errorTextColor = tv.data; // trigger theme observers themeWatch.postValue(themeWatch.getValue() + 1);