feat(YouTube - Hide layout components): Add Disable translucent status bar setting

This commit is contained in:
inotia00
2025-01-03 22:04:27 +09:00
parent 01bd3141b3
commit 945b91eebb
6 changed files with 48 additions and 4 deletions

View File

@ -128,6 +128,15 @@ public class GeneralPatch {
// region [Hide layout components] patch
public static boolean disableTranslucentStatusBar(boolean original) {
try {
return !Settings.DISABLE_TRANSLUCENT_STATUS_BAR.get() && original;
} catch (Exception ex) {
Logger.printException(() -> "Failed to load disableTranslucentStatusBar", ex);
}
return original;
}
private static String[] accountMenuBlockList;
static {

View File

@ -148,6 +148,7 @@ public class Settings extends BaseSettings {
new ChangeStartPagePatch.ChangeStartPageTypeAvailability());
public static final BooleanSetting DISABLE_AUTO_AUDIO_TRACKS = new BooleanSetting("revanced_disable_auto_audio_tracks", FALSE);
public static final BooleanSetting DISABLE_SPLASH_ANIMATION = new BooleanSetting("revanced_disable_splash_animation", FALSE, true);
public static final BooleanSetting DISABLE_TRANSLUCENT_STATUS_BAR = new BooleanSetting("revanced_disable_translucent_status_bar", TRUE, true);
public static final BooleanSetting ENABLE_GRADIENT_LOADING_SCREEN = new BooleanSetting("revanced_enable_gradient_loading_screen", FALSE, true);
public static final BooleanSetting HIDE_FLOATING_MICROPHONE = new BooleanSetting("revanced_hide_floating_microphone", TRUE, true);
public static final BooleanSetting HIDE_GRAY_SEPARATOR = new BooleanSetting("revanced_hide_gray_separator", TRUE);