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;h=829d1622d93a1c16562a485168451659a2324705;hp=845cda3657675ba57d204edd48d28f7dee4f5153;hb=ff27cd8c41424676ec046c58448d23cd4313d1dc;hpb=ea97a791974860cc03069903dffbcaca45330635 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 845cda36..829d1622 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, defaultTextColorDisabled; + public static int primary; public static int profileThemeId = -1; public static MutableLiveData themeWatch = new MutableLiveData<>(0); public static int errorTextColor; @@ -105,9 +105,6 @@ public class Colors { tableRowLightBG = tv.data; theme.resolveAttribute(R.attr.colorPrimary, tv, true); 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; theme.resolveAttribute(R.attr.errorTextColor, tv, true); @@ -231,7 +228,6 @@ public class Colors { refreshColors(activity.getTheme()); } - public static @NonNull ColorStateList getColorStateList() { return getColorStateList(profileThemeId); @@ -276,7 +272,7 @@ public class Colors { for (int h : hues) { if (huesSB.length() > 0) huesSB.append(", "); - huesSB.append(String.valueOf(h)); + huesSB.append(h); } debug("profiles", String.format("used hues: %s", huesSB.toString())); }