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=afb355002eebc5baf38b54cda59056202011d0a0;hp=e648ca7d058ff167e8791e45c2c554a601527955;hb=c6d5f4d72d3ca705cc03b04d87b282ebe717bd61;hpb=846da081db46331ffea910edf3956ce8b725d582 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 e648ca7d..afb35500 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/Colors.java @@ -50,14 +50,9 @@ public class Colors { public static @ColorInt int accent; @ColorInt - public static int tableRowLightBG; - @ColorInt public static int tableRowDarkBG; - @ColorInt - public static int primary; public static int profileThemeId = -1; public static MutableLiveData themeWatch = new MutableLiveData<>(0); - public static int errorTextColor; private static int SWIPE_COLOR_COUNT = 6; private static int[] themeIDs = {R.style.AppTheme_000, R.style.AppTheme_005, @@ -101,14 +96,8 @@ public class Colors { TypedValue tv = new TypedValue(); theme.resolveAttribute(R.attr.table_row_dark_bg, tv, true); tableRowDarkBG = tv.data; - theme.resolveAttribute(R.attr.table_row_light_bg, tv, true); - tableRowLightBG = tv.data; - theme.resolveAttribute(R.attr.colorPrimary, tv, true); - primary = tv.data; 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);