fixed toolbar

This commit is contained in:
gdlbo
2022-12-05 00:43:20 +03:00
parent a75070f8d3
commit 251f9935aa
4 changed files with 25 additions and 0 deletions
@@ -247,6 +247,11 @@ public class ThemesUtils {
return new RecoloredDrawable(drawable, getAccentColor());
} // Recolor drawable to accent color
public static Drawable recolorToolbarDrawable(Drawable drawable) {
if (drawable == null) return null;
return new RecoloredDrawable(drawable, (ThemesUtils.isMilkshake() && !ThemesUtils.isDarkTheme()) ? ThemesUtils.getAccentColor() : ThemesUtils.getHeaderText());
}
public static void recolorTextView(TextView tw) {
tw.getBackground().setColorFilter(ThemesUtils.getAccentColor(), PorterDuff.Mode.SRC_OVER);
}