From 941c7e290359ef5ab27459b8005935ab0d8ed249 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 31 May 2023 23:46:27 +0200 Subject: [PATCH] feat(youtube/swipe-controls): add option to save and restore brightness --- .../patch/resource/SwipeControlsResourcePatch.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt index ee1758e7560..5aeb9f73967 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt @@ -46,6 +46,18 @@ class SwipeControlsResourcePatch : ResourcePatch { StringResource("revanced_swipe_haptic_feedback_summary_on", "Haptic feedback is enabled"), StringResource("revanced_swipe_haptic_feedback_summary_off", "Haptic feedback is disabled") ), + SwitchPreference( + "revanced_save_and_restore_brightness", + StringResource("revanced_save_and_restore_brightness_title", "Save and restore brightness"), + StringResource( + "revanced_save_and_restore_brightness_summary_on", + "Save and restore brightness when exiting or entering fullscreen" + ), + StringResource( + "revanced_save_and_restore_brightness_summary_off", + "Don't save and restore brightness when exiting or entering fullscreen" + ) + ), TextPreference( "revanced_swipe_overlay_timeout", StringResource("revanced_swipe_overlay_timeout_title", "Swipe overlay timeout"),