-
-
Notifications
You must be signed in to change notification settings - Fork 454
fix: Add scrollable content to modern style settings dialogs #5211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This fix dialog layout to prevent buttons from being pushed off-screen
af54e91
to
0a43008
Compare
3029224
to
2fb841b
Compare
Unrelated to this PR, but after using the new dialogs for a little while I think the AMOLED black dialog adjustment could be adjusted so the dialog background is closer to black. Maybe 5% brightness instead of 10% or whatever it is now. I think the dialog background looks a little too grey and could be closer to pure black (without being pure black). |
Actually, that's exactly what I wanted to do, but I guess overthought it a bit. This PR should be merged as soon as possible, because in the check dialog the buttons may be behind the screen, and it is impossible to click |
I remember if the theme color is pure black, then it uses slightly off black for the dialogs so the dialog bounds are viewable? I still think that is the correct behavior, but I think it should use a darker shade of black. |
That's where this color is, just need to choose a darker one revanced-patches/extensions/shared/library/src/main/java/app/revanced/extension/shared/Utils.java Line 1216 in 98d43c8
|
I don't understand where the extra paragraph comes from. Edit: This is probably because of the
|
That dialog text is created from html converted to an Android span. It might be adding padding to match html behavior. Not sure. Its too minor to worry about fixing it. |
This reverts commit 0e0fb5b.
Can merge whenever this is ready. |
Wait a bit, I still need to add scrolling in some places (colorpicker, preferencelist), I'm testing now |
Probably considered all the places where need to add a scrollview. In the past PR I missed that the user can work in landscape orientation, or on TV, so when the content takes up a lot of space the buttons were still hidden (previously to avoid this I added a check for 60% of the height). Now everything is probably adapting as it should. |
Will merge tomorrow if there's no further changes by then. |
The changes in this PR are exclusive towards ReVanced YouTube settings, right? So maybe change the PR title as well? |
No, the new modern dialogs are also present in other apps (Twitch), and this fix applies to them as well. |
Ready to merge? |
I think yes |
## [5.28.1-dev.1](v5.28.0...v5.28.1-dev.1) (2025-06-22) ### Bug Fixes * Add scrollable content to modern style settings dialogs ([#5211](#5211)) ([e6876d5](e6876d5))
# [5.29.0](v5.28.0...v5.29.0) (2025-06-26) ### Bug Fixes * Add scrollable content to modern style settings dialogs ([#5211](#5211)) ([e6876d5](e6876d5)) * **Google Photos:** Resolve startup crash for Android 5.0 devices ([0294533](0294533)) * **YouTube - Hide ads:** Hide new type of product ad in video description ([#5225](#5225)) ([1e2efad](1e2efad)) * **YouTube - Hide layout components:** Fix "Hide video description attributes" ([#5250](#5250)) ([2f22d45](2f22d45)) * **YouTube - Hide Shorts components:** Fix "Hide Use this sound button" ([#5233](#5233)) ([5d6ec9e](5d6ec9e)) * **YouTube - Hide Shorts components:** Fix "Hide Use this template button" ([#5249](#5249)) ([b399ecb](b399ecb)) * **YouTube:** Always use single threaded layout to resolve layout bugs in unpatched YouTube ([#5226](#5226)) ([1f539b1](1f539b1)) * **YouTube:** Fix refactoring app startup exception ([1b00c90](1b00c90)) ### Features * Add `Spoof app signature` patch ([#5158](#5158)) ([78b25aa](78b25aa)) * **Cricbuzz:** Add `Hide ads` patch ([#4998](#4998)) ([83ccfa8](83ccfa8)) * **Crunchyroll:** Add `Hide ads` patch ([#5201](#5201)) ([46b4398](46b4398)) * **YouTube - Hide Shorts components:** Add `Hide Effects button` ([#5255](#5255)) ([240897a](240897a)) * **YouTube - Hide video action buttons:** Add `Hide Stop ads` ([#5245](#5245)) ([274dcc6](274dcc6)) * **YouTube:** Add an option to disable toasts when changing default playback speed or quality ([#5230](#5230)) ([c68cde3](c68cde3)) * **YouTube:** Support version `20.13.41` ([#5253](#5253)) ([d284c3d](d284c3d))
This fix dialog layout to prevent buttons from being pushed off-screen.
If user has set a very large font, the content does not fit into the dialog, so the buttons may go off the screen.