mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-07 05:38:03 +02:00
617a4eb5d0
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
21 lines
502 B
Java
21 lines
502 B
Java
package app.revanced.integrations.utils;
|
|
|
|
public class ThemeHelper {
|
|
private static int themeValue;
|
|
|
|
public static void setTheme(int value) {
|
|
themeValue = value;
|
|
LogHelper.printDebug(() -> "Theme value: " + themeValue);
|
|
}
|
|
|
|
public static void setTheme(Object value) {
|
|
themeValue = ((Enum) value).ordinal();
|
|
LogHelper.printDebug(() -> "Theme value: " + themeValue);
|
|
}
|
|
|
|
public static boolean isDarkTheme() {
|
|
return themeValue == 1;
|
|
}
|
|
|
|
}
|