verif icon coloring in dialogs

This commit is contained in:
gdlbo
2022-06-16 16:24:23 +03:00
parent fb71b4d781
commit d164d1219d
2 changed files with 11 additions and 1 deletions
@@ -14,6 +14,7 @@ import static ru.vtosters.lite.utils.Preferences.systemtheme;
import static ru.vtosters.lite.utils.Preferences.vkme;
import static ru.vtosters.lite.utils.Preferences.vksans;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.res.ColorStateList;
@@ -186,6 +187,11 @@ public class Themes {
return new RecoloredDrawable(drawable, getHeaderText());
} // Recolor toolbar drawable to accent color
public static Drawable recolorDrawableInt(int drawable) {
@SuppressLint("UseCompatLoadingForDrawables") Drawable res = getResources().getDrawable(drawable);
return new RecoloredDrawable(res, getAccentColor());
} // Get res drawable via id and coloring to accent
public static ColorStateList recolorCSL(ColorStateList colorStateList) {
if (colorStateList == null) {
return null;