revanced-patches-template icon indicating copy to clipboard operation
revanced-patches-template copied to clipboard

refactor(YouTube): separate `preferencescreen` for `video quality and speed settings`

Open johnconner122 opened this issue 1 year ago • 14 comments

johnconner122 avatar Apr 28 '23 10:04 johnconner122

On another note, do you consider these patches miscellaneous or interaction?

oSumAtrIX avatar Apr 28 '23 14:04 oSumAtrIX

On another note, do you consider these patches miscellaneous or interaction?

We are not constantly interacting, we just set the quality or speed, and forget about it.

johnconner122 avatar Apr 28 '23 15:04 johnconner122

Currently there is only 4 menus under Settings -> ReVanced

Maybe put both video speed and quality under its own top level menu? Settings -> ReVanced -> Video Quality, Speed

LisoUseInAIKyrios avatar Apr 28 '23 15:04 LisoUseInAIKyrios

@LisoUseInAIKyrios The four menus are currently meant to be pages to hold a list of patch menus/settings. If we add another menu, just for a single patch, then this would break that convention, because now a fifth menu would soley be dedicated for the speed/quality patch. Keep in mind, the Settings patch is used the following way: "SettingsPatch.MISC.add(setting)". If you now add a quality/speed menu, now other patches would for some reason see: "SettingsPatch.QUALITY.add(setting)". Therefore it should be added to an existing menu and not in a dedicated one.

oSumAtrIX avatar Apr 28 '23 16:04 oSumAtrIX

How about this one?

Screenshot_2023-04-28-21-04-49-557_app.revanced.android.youtube.jpg

johnconner122 avatar Apr 28 '23 16:04 johnconner122

Screenshot_2023-04-28-21-04-54-173_app.revanced.android.youtube.jpg

johnconner122 avatar Apr 28 '23 16:04 johnconner122

If you introduce this menu, other video related settings should be moved into it.

oSumAtrIX avatar Apr 28 '23 16:04 oSumAtrIX

I guess we are fine with current PR. 🤷

johnconner122 avatar Apr 28 '23 16:04 johnconner122

settings

Video menu: video menu

Thoughts?

LisoUseInAIKyrios avatar Apr 29 '23 07:04 LisoUseInAIKyrios

Looks good.

johnconner122 avatar Apr 29 '23 07:04 johnconner122

On a related note, the "Layout" menu is huge and contains the majority of options.

It might be possible to move some of these into the "Interaction" menu: "disable zoom haptics" "hide seekbar" "hide previous & next video buttons" "enable auto-repeat"

interaction

(this idea is not included with this PR)

LisoUseInAIKyrios avatar Apr 29 '23 07:04 LisoUseInAIKyrios

Things like video timestamp don't belong in video playback menu.

oSumAtrIX avatar Apr 29 '23 11:04 oSumAtrIX

Things like video timestamp don't belong in video playback menu.

Ok, can revert that. What about creator watermark or the other options?

LisoUseInAIKyrios avatar Apr 29 '23 11:04 LisoUseInAIKyrios

The same applies to them, the menu is labeled as "Settings related to [...] Playback" which is where the conflict happens

oSumAtrIX avatar Apr 29 '23 11:04 oSumAtrIX

Thoughts? video menu

LisoUseInAIKyrios avatar May 01 '23 19:05 LisoUseInAIKyrios

if video quality and speed are moved to their own preference, I think it should be a root menu under ReVanced Settings.

Adding a sub menu to Misc makes one more step to reach the video settings, and the Misc menu does not have many entries so it's not overcrowded or any reason to add another level of depth.

If a new root menu is not favorable, then I think the speed and quality settings should remain where they are now (inside Misc) and this PR should be scraped.

LisoUseInAIKyrios avatar May 01 '23 19:05 LisoUseInAIKyrios

The "root" menu is meant as categories. Is "speed" and "quality" a category? Are there patches that can be put inside the category in the future? If these menus are just made to host the current speed and quality settings, it loses it's meaning, which is why it should be inside the misc category instead.

oSumAtrIX avatar May 02 '23 00:05 oSumAtrIX