added support for monet light style

This commit is contained in:
gdlbo
2022-12-12 17:04:37 +03:00
parent bb64ed8d2a
commit 01adf656e2
2 changed files with 14 additions and 2 deletions
@@ -259,6 +259,14 @@ public class ThemesUtils {
}
} // Return needed res theme
public static int getLightThemeRes() {
if (isMonetTheme()) {
return isMilkshake() ? getIdentifier("VkMilkLightMonetStyle", "style"): getIdentifier("VkLightMonetStyle", "style");
} else {
return isMilkshake() ? R.style.VkMilkLightStyle : R.style.VkLightStyle;
}
} // Return needed res theme
public static VKTheme getDarkTheme() {
return isMilkshake() ? VKTheme.VKAPP_MILK_DARK : VKTheme.VKAPP_DARK;
} // Return needed theme for theme changer