revanced-integrations/app/src/main/java/app/revanced/integrations/utils/ThemeHelper.java
LisousEinaiKyrios 617a4eb5d0
refactor: improve logging (#222)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2022-11-30 00:49:26 +01:00

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;
}
}