mini refactoring

This commit is contained in:
gdlbo
2022-06-12 16:19:45 +03:00
parent 2dc814eacb
commit f4786f0479
8 changed files with 22 additions and 16 deletions
@@ -229,6 +229,13 @@ public class Themes {
return Color.argb(Color.alpha(color), red, green, blue);
}
public static int fixTextColor(int resid) {
if (resid == R.color.music_action_button_gray || resid == R.color.cool_grey || resid == R.color.accent_blue){
return isDarkTheme()? R.color.white : R.color.cool_grey;
}
return resid;
}
public static int halfAlpha(int src) {
return ColorUtils.setAlphaComponent(src, 169);
}