Skip to content

feat(YouTube - Settings): Add icons to the ReVanced settings #4496

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

Merged
merged 14 commits into from
Apr 2, 2025

Conversation

MarcaDian
Copy link
Contributor

@MarcaDian MarcaDian commented Feb 23, 2025

Adds icons to the ReVanced settings menu.

Icons can be turned off in General > Show ReVanced settings icons

After

Screenshot_2025-03-19-23-49-54-100_app.revancede.android.youtube-edit.jpg

Screenshot_2025-03-20-00-09-35-557_app.revancede.android.youtube-edit.jpg

@LisoUseInAIKyrios
Copy link
Contributor

The YouTube brand guidelines does not mention Shorts or the Shorts logo, so it's unclear if permission is needed to use a Shorts icon.

https://www.youtube.com/howyoutubeworks/resources/brand-resources

# Conflicts:
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_00_about.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_01_ads.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_02_alt_thumbnails.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_03_feed.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_04_general.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_05_player.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_06_shorts.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_07_seekbar.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_08_swipe_controls.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_11_misc.xml
#	patches/src/main/resources/settings/drawable/revanced_settings_screen_12_video.xml
@MarcaDian
Copy link
Contributor Author

I took the Shorts icon from some site and edited it to size. It is not in the Google icon repository. In fact, it is custom icon.

@LisoUseInAIKyrios
Copy link
Contributor

Their brand guidelines apply to custom graphics as well. The question is if the Shorts logo needs permission to use.

@MarcaDian
Copy link
Contributor Author

I think it's better to add Copyright than to decide if it is necessary or not.

@LisoUseInAIKyrios
Copy link
Contributor

LisoUseInAIKyrios commented Feb 23, 2025

https://en.m.wikipedia.org/wiki/File:Youtube_shorts_icon.svg

Wikipedia lists the vector icon file as public domain, but with a caution that it might be trademarked.

Searching the USPTO website shows that "YouTube Shorts" is trademarked:
https://tsdr.uspto.gov/#caseNumber=90980684&caseSearchType=US_APPLICATION&caseType=DEFAULT&searchType=statusSearch
https://tsdr.uspto.gov/#caseNumber=90313243&caseSearchType=US_APPLICATION&caseType=DEFAULT&searchType=statusSearch

But the trademark does not include a wordmark or logo. For reference the YouTube logo and wordmark is trademarked

So, maybe it's ok to modify and use the public domain vector icon.

@kitadai31
Copy link
Contributor

Can't it depend on the app's native icon resources?
@drawable/yt_outline_youtube_shorts_black_24 and @drawable/yt_outline_youtube_shorts_white_24 exist

@LisoUseInAIKyrios
Copy link
Contributor

If that built in icon matches the line width of the other icons (or the other icons can be adjusted to match the built in icon), then using that would be best.

But I think using the icon already here might be ok too

@LisoUseInAIKyrios LisoUseInAIKyrios marked this pull request as ready for review February 23, 2025 14:50
@MarcaDian
Copy link
Contributor Author

If necessary, it is also possible to add icons to the submenus, but it seems to me that this goes beyond the design code of the YouTube settings.

Although, for example, hiding buttons for the user would be intuitive as to which button would be hidden.

@LisoUseInAIKyrios
Copy link
Contributor

I think icons for only some submenu items but not for other items would look out of place.

The hide action and navigation buttons are the only settings that an icon might help, but I think it's easy to understand what those settings do just from the setting title text.

@MarcaDian
Copy link
Contributor Author

MarcaDian commented Feb 23, 2025

What if change Shorts icon to this. I also made some another variants.
I think it's better not to risk, it's just an icon in settings, and even a branded icon doesn't show the essence of this setting.

IMG_20250223_225947.jpg

@LisoUseInAIKyrios
Copy link
Contributor

Looks good, but maybe remove the gear icon. The Shorts settings are less like the video settings and more like the player (which has no gear).

@MarcaDian
Copy link
Contributor Author

but maybe remove the gear icon

Ok, it was a second variant =)

@MarcaDian
Copy link
Contributor Author

MarcaDian commented Feb 23, 2025

animated images

But it is not available in the GitHub repository... Found

image

@oSumAtrIX
Copy link
Member

There's multiple considerations with this PR

  • The icons don't comply with the design language of YouTube settings
  • If the design language is broken, then break it as little as possible and use the icon set used in the design language, no custom icons
  • Trademarked icons like the Shorts icon are probably fine. Maybe there's a way to request rights, similar to how we did it for the YouTube logo on our website and GitHub organization readme. Maybe certain usage doesn't require rights, such as free-use

@MarcaDian
Copy link
Contributor Author

MarcaDian commented Feb 24, 2025

I tried to choose icons more appropriate to the context of the menu item.
But not all necessary icons are in the Google icon library. In any case, if anyone don't like them, can turn them off in the settings.
Perhaps someone has suggestions to change some unsuitable icon.

But IMHO, at the moment, Google has a poor taste in the design code in the YouTube settings, some icons are simply terrible.

Edit: There are no custom icons here.

@LisoUseInAIKyrios
Copy link
Contributor

These icons could be default off, so users need to opt in to see them.

# Conflicts:
#	patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt
Copy link
Contributor

@LisoUseInAIKyrios LisoUseInAIKyrios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I like to use no icons in the settings, but I think this change looks ok and users can turn off the icons if they want.

@LisoUseInAIKyrios LisoUseInAIKyrios removed the request for review from oSumAtrIX April 1, 2025 22:01
@LisoUseInAIKyrios LisoUseInAIKyrios merged commit d0c85f0 into ReVanced:dev Apr 2, 2025
1 check passed
github-actions bot pushed a commit that referenced this pull request Apr 2, 2025
# [5.19.0-dev.2](v5.19.0-dev.1...v5.19.0-dev.2) (2025-04-02)

### Features

* **YouTube - Settings:** Add icons to the ReVanced settings ([#4496](#4496)) ([d0c85f0](d0c85f0))
@MarcaDian MarcaDian deleted the settings_icons branch April 2, 2025 16:02
github-actions bot pushed a commit that referenced this pull request Apr 12, 2025
# [5.19.0](v5.18.0...v5.19.0) (2025-04-12)

### Bug Fixes

* **Google Photos - Restore hidden 'Back up while charging' toggle:** Constrain to last working app target ([#4761](#4761)) ([152bb7c](152bb7c))
* **Google Photos:** Remove obsolete non functional patch `Restore hidden 'Back up while charging' toggle` ([#4764](#4764)) ([56e48f4](56e48f4))
* **Spotify - Custom theme:** Override more color resources ([#4690](#4690)) ([d7a7a0b](d7a7a0b))
* **Spotify - Unlock Spotify Premium:** Remove restrictions for Google voice assistant ([#4702](#4702)) ([106202f](106202f))
* **Spotify:** Remove ads sections from home ([#4722](#4722)) ([0b9a5e7](0b9a5e7))
* **Twitter - Hide recommended users:** Make hiding work again by filtering for new entryId prefix ([#4456](#4456)) ([ff846b0](ff846b0))
* **YouTube - Hide layout components:** Do not hide video description music/game links if hide horizontal shelves is enabled ([3864f35](3864f35))
* **YouTube - Hide player flyout menu items:** Show more detailed summary text for 'Hide Audio track' if using Android spoof client ([#4756](#4756)) ([b67bbb2](b67bbb2))
* **YouTube - Remove background playback restrictions:** Do not show media controls when playing Shorts from the feed ([2ed675c](2ed675c))
* **YouTube - Return YouTube Dislike:** Correctly update label after disliking a Short with 20.07 ([0bb3e32](0bb3e32))
* **YouTube - Return YouTube Dislike:** Fix inconsistent label after disliking a Short ([ea92a2e](ea92a2e))
* **YouTube - Seekbar:** Correctly hide the feed seekbar with target 20.07 ([ddc6e4c](ddc6e4c))
* **YouTube:** Combine multiple seekbar patches into a single patch ([#4705](#4705)) ([503b7eb](503b7eb))

### Features

* **Angulus:** Add `Hide ads` patch ([#4604](#4604)) ([87c86b5](87c86b5))
* **Messenger:** Add `Remove Meta AI tab` patch ([#4726](#4726)) ([e3fad97](e3fad97))
* **Photomath:** Support latest version ([#4672](#4672)) ([8e16483](8e16483))
* **Proton Mail:** Add `Remove 'Sent from' signature` patch ([#4514](#4514)) ([34c14c9](34c14c9))
* **Spotify:** Add `Check environment` patch ([#4765](#4765)) ([6d7101c](6d7101c))
* **Spotify:** Add limited support for version `8.6.98.900` (last version that supports Kenwood and Pioneer car stereos) ([#4750](#4750)) ([a3fde87](a3fde87))
* **Strava - Disable subscription suggestions:** Make compatible with latest version ([#4739](#4739)) ([649a2c0](649a2c0))
* **YouTube - Settings:** Add icons to the ReVanced settings ([#4496](#4496)) ([d0c85f0](d0c85f0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants