Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

fix(YouTube - Settings): Use multiline preference title for localized languages #727

Conversation

LisoUseInAIKyrios
Copy link
Contributor

@LisoUseInAIKyrios LisoUseInAIKyrios commented Oct 24, 2024

Fixes preference titles clipping when using localized langauges.

Many of the localized preference titles do not fit into 1 line and many are unreadable.

This PR sets the titles to multiline if the device is using a localized language.

The English strings do not require multiline, and the 2 or 3 English preferences that overrun are only partially clipped and still readable. Making those couple of preferences multiline looks weird and out of place, and visually it is better to clip the text and keep all titles 1 line.

Before (Single line)

Screenshot_20241024_083249_YouTube

After (Multiline)

Screenshot_20241024_080418_YouTube

@LisoUseInAIKyrios LisoUseInAIKyrios force-pushed the fix/settings_preferences_multiline branch from b29a99a to 8499d9e Compare October 24, 2024 12:47
@MarcaDian
Copy link
Contributor

MarcaDian commented Oct 24, 2024

This is a very important PR for us, because very often we have to cut the title translation to fit in screen.
However, during testing, I noticed that changes occurred only in Sponsorblock or RYD. In native ReVanced settings, it still gets cropped.

Screenshot_2024-10-24-19-01-20-402-edit_app revanced android youtube
Screenshot_2024-10-24-19-01-36-576-edit_app revanced android youtube
Screenshot_2024-10-24-19-10-30-157-edit_app.revanced.android.youtube.jpg

@LisoUseInAIKyrios

This comment was marked as resolved.

@MarcaDian

This comment was marked as resolved.

@oSumAtrIX
Copy link
Member

With PR ReVanced/revanced-patches#3462, ReVanced Integrations has been merged into ReVanced Patches. This PR must be reopened in the ReVanced Patches repository and adjusted to the new build system. ReVanced Integration is now understood as "extensions" according to the ReVanced Patcher API. As extensions are now on a per-patch basis, this PR may be subject to a separate extension. If not, the PR can change the shared extension in ReVanced Patches.

Thanks, for the PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants