@ColorInt
public static int tableRowDarkBG;
@ColorInt
- public static int primary, defaultTextColor, defaultTextColorDisabled;
+ public static int primary;
public static int profileThemeId = -1;
public static MutableLiveData<Integer> themeWatch = new MutableLiveData<>(0);
public static int errorTextColor;
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);
refreshColors(activity.getTheme());
}
-
public static @NonNull
ColorStateList getColorStateList() {
return getColorStateList(profileThemeId);
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()));
}