/*
- * Copyright © 2019 Damyan Ivanov.
+ * Copyright © 2020 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
@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);
}
if (themeId < 0) {
- themeId = R.style.AppTheme;
+ themeId = R.style.AppTheme_default;
debug("profiles",
String.format(Locale.ENGLISH, "Theme hue %d not supported, using the default",
themeHue));
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()));
}