revert old theme engine for monet theme

This commit is contained in:
gdlbo
2023-03-25 20:32:44 +03:00
parent 9a76492c06
commit ababaad45f
20 changed files with 470 additions and 12 deletions
@@ -19,8 +19,6 @@ import ru.vtosters.lite.utils.ThemesUtils;
public final class TextViewExt {
public static void a(TextView textView, Drawable drawable) {
a(textView, null, drawable);
ThemesUtils.colorTextView(textView);
}
public static boolean b(TextView textView) {
@@ -96,14 +94,10 @@ public final class TextViewExt {
private static void a(TextView textView, Drawable drawable, Drawable drawable2) {
textView.setCompoundDrawablesRelativeWithIntrinsicBounds(drawable, null, drawable2, null);
ThemesUtils.colorTextView(textView);
}
public static void a(TextView textView) {
textView.setCompoundDrawablesRelativeWithIntrinsicBounds(null, null, null, null);
ThemesUtils.colorTextView(textView);
}
public static Drawable a(Drawable drawable, ColorStateList colorStateList) {
@@ -3,12 +3,9 @@ package com.vk.extensions;
import android.widget.TextView;
import androidx.annotation.AttrRes;
import com.vk.core.ui.themes.VKThemeHelper;
import ru.vtosters.lite.utils.ThemesUtils;
public final class TextViewExt {
public static void a(TextView textView, @AttrRes int i) {
VKThemeHelper.a(textView, i);
ThemesUtils.colorTextView(textView);
}
}