Fixes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package ru.vtosters.lite.utils;
|
||||
|
||||
import static android.view.View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR;
|
||||
import static ru.vtosters.lite.utils.Globals.getContext;
|
||||
import static ru.vtosters.lite.utils.Globals.getPrefsValue;
|
||||
import static ru.vtosters.lite.utils.Preferences.color_grishka;
|
||||
@@ -43,6 +42,10 @@ public class Themes {
|
||||
return VKThemeHelper.a(R.attr.tabbar_background);
|
||||
}
|
||||
|
||||
public static int getBackgroundContent() {
|
||||
return VKThemeHelper.a(R.attr.background_content);
|
||||
}
|
||||
|
||||
public static int getHeaderBackground() {
|
||||
return VKThemeHelper.a(R.attr.header_background);
|
||||
}
|
||||
@@ -59,6 +62,10 @@ public class Themes {
|
||||
return getContext().getResources().getIdentifier("VkIm.Theme.VkApp.Amoled", "style", getContext().getPackageName());
|
||||
}
|
||||
|
||||
public static int getHeaderText() {
|
||||
return VKThemeHelper.a(R.attr.header_text);
|
||||
}
|
||||
|
||||
public static void setStatusBarTheme(View getview) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
getview.setSystemUiVisibility(getview.getSystemUiVisibility() + getNeededColorStatusbar());
|
||||
@@ -112,10 +119,6 @@ public class Themes {
|
||||
return VKThemeHelper.a(attr);
|
||||
}
|
||||
|
||||
public static int getHeaderText() {
|
||||
return VKThemeHelper.a(R.attr.header_text);
|
||||
}
|
||||
|
||||
public static boolean isAndroidMonet() {
|
||||
return color_grishka() && Build.VERSION.SDK_INT >= 31;
|
||||
}
|
||||
@@ -171,7 +174,7 @@ public class Themes {
|
||||
|
||||
public static void setNavbarColor(Window window, int i) {
|
||||
if (navbar() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
window.setNavigationBarColor(getNavbarColor());
|
||||
window.setNavigationBarColor(getTabbarBackground());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,10 +209,6 @@ public class Themes {
|
||||
return vksans() ? R.font.vk_sans_text_regular : R.font.roboto_regular;
|
||||
}
|
||||
|
||||
public static int getNavbarColor() {
|
||||
return VKThemeHelper.a(R.attr.tabbar_background);
|
||||
}
|
||||
|
||||
public static String getBackgroundStickers() {
|
||||
if (isBGStickersEnabled()) {
|
||||
return "images_with_background";
|
||||
|
||||
Reference in New Issue
Block a user