Skip to content

Commit f6c3bc4

Browse files
MarcaDianoSumAtrIX
andauthored
feat(YouTube - Swipe controls): Save and restore brightness and add auto-brightness toggle (#2996)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent e46f669 commit f6c3bc4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsResourcePatch.kt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ internal object SwipeControlsResourcePatch : ResourcePatch() {
2424
SwitchPreference("revanced_swipe_press_to_engage"),
2525
SwitchPreference("revanced_swipe_haptic_feedback"),
2626
SwitchPreference("revanced_swipe_save_and_restore_brightness"),
27+
SwitchPreference("revanced_swipe_lowest_value_enable_auto_brightness"),
2728
TextPreference("revanced_swipe_overlay_timeout", inputType = InputType.NUMBER),
2829
TextPreference("revanced_swipe_text_overlay_size", inputType = InputType.NUMBER),
2930
TextPreference("revanced_swipe_overlay_background_alpha", inputType = InputType.NUMBER),

src/main/resources/addresources/values/strings.xml

+4
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@
340340
<string name="revanced_swipe_save_and_restore_brightness_title">Save and restore brightness</string>
341341
<string name="revanced_swipe_save_and_restore_brightness_summary_on">Save and restore brightness when exiting or entering fullscreen</string>
342342
<string name="revanced_swipe_save_and_restore_brightness_summary_off">Do not save and restore brightness when exiting or entering fullscreen</string>
343+
<string name="revanced_swipe_lowest_value_enable_auto_brightness_title">Enable auto-brightness gesture</string>
344+
<string name="revanced_swipe_lowest_value_enable_auto_brightness_summary_on">Swiping down to the lowest value of the brightness gesture enable auto-brightness</string>
345+
<string name="revanced_swipe_lowest_value_enable_auto_brightness_summary_off">Swiping down to the lowest value does not enable auto-brightness</string>
346+
<string name="revanced_swipe_lowest_value_enable_auto_brightness_overlay_text">Auto</string>
343347
<string name="revanced_swipe_overlay_timeout_title">Swipe overlay timeout</string>
344348
<string name="revanced_swipe_overlay_timeout_summary">The amount of milliseconds the overlay is visible</string>
345349
<string name="revanced_swipe_text_overlay_size_title">Swipe overlay text size</string>

0 commit comments

Comments
 (0)