Fix text views, update queue time
This commit is contained in:
parent
887b6a4d36
commit
671728b315
22 changed files with 367 additions and 196 deletions
|
@ -150,16 +150,12 @@ public final class PreferenceUtil {
|
|||
}
|
||||
|
||||
@StyleRes
|
||||
public static int getThemeResFromPrefValue(String themePrefValue) {
|
||||
public static int getThemeResFromPrefValue(@NonNull String themePrefValue) {
|
||||
switch (themePrefValue) {
|
||||
case "light":
|
||||
return R.style.Theme_RetroMusic_Light;
|
||||
case "color":
|
||||
return R.style.Theme_RetroMusic_Color;
|
||||
case "black":
|
||||
return R.style.Theme_RetroMusic_Black;
|
||||
case "daynight":
|
||||
return R.style.Theme_RetroMusic_DayNight;
|
||||
case "dark":
|
||||
default:
|
||||
return R.style.Theme_RetroMusic;
|
||||
|
|
|
@ -37,7 +37,7 @@ import code.name.monkey.retromusic.R;
|
|||
public class RetroColorUtil {
|
||||
public static int toolbarColor(@NonNull Context context) {
|
||||
int color = ThemeStore.Companion.primaryColor(context);
|
||||
if (ATHUtil.INSTANCE.isWindowBackgroundDark(context) && PreferenceUtil.getInstance().getGeneralTheme() != R.style.Theme_RetroMusic_Color) {
|
||||
if (ATHUtil.INSTANCE.isWindowBackgroundDark(context)) {
|
||||
return ATHUtil.INSTANCE.resolveColor(context, R.attr.cardBackgroundColor);
|
||||
} else {
|
||||
return color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue