Skip to content

Commit

Permalink
feat(YouTube - VIsual preferences icons): Add icons to Player buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
anddea committed May 14, 2024
1 parent 046a05e commit a07b8ec
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
"revanced_hide_navigation_notifications_button",
"revanced_hide_navigation_shorts_button",
"revanced_hide_navigation_subscriptions_button",
"revanced_hide_player_autoplay_button",
"revanced_hide_player_captions_button",
"revanced_hide_player_cast_button",
"revanced_hide_player_collapse_button",
"revanced_hide_player_flyout_menu_ambient_mode",
"revanced_hide_player_flyout_menu_audio_track",
"revanced_hide_player_flyout_menu_captions",
Expand All @@ -123,6 +127,9 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
"revanced_hide_player_flyout_menu_stable_volume",
"revanced_hide_player_flyout_menu_stats_for_nerds",
"revanced_hide_player_flyout_menu_watch_in_vr",
"revanced_hide_player_fullscreen_button",
"revanced_hide_player_previous_next_button",
"revanced_hide_player_youtube_music_button",
"revanced_hide_playlist_button",
"revanced_hide_quick_actions_comment_button",
"revanced_hide_quick_actions_dislike_button",
Expand Down Expand Up @@ -236,12 +243,15 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
"revanced_hide_navigation_library_button" -> "revanced_preference_screen_video_icon"
"revanced_hide_navigation_notifications_button" -> "notification_key_icon"
"revanced_hide_navigation_shorts_button" -> "revanced_preference_screen_shorts_icon"
"revanced_hide_player_autoplay_button" -> "revanced_change_player_flyout_menu_toggle_icon"
"revanced_hide_player_captions_button" -> "captions_key_icon"
"revanced_hide_player_flyout_menu_ambient_mode" -> "revanced_preference_screen_ambient_mode_icon"
"revanced_hide_player_flyout_menu_captions" -> "captions_key_icon"
"revanced_hide_player_flyout_menu_loop_video" -> "revanced_overlay_button_always_repeat_icon"
"revanced_hide_player_flyout_menu_more_info" -> "about_key_icon"
"revanced_hide_player_flyout_menu_quality_footer" -> "revanced_default_video_quality_wifi_icon"
"revanced_hide_player_flyout_menu_report" -> "revanced_hide_report_button_icon"
"revanced_hide_player_fullscreen_button" -> "revanced_preference_screen_fullscreen_icon"
"revanced_hide_quick_actions_dislike_button" -> "revanced_preference_screen_ryd_icon"
"revanced_hide_quick_actions_live_chat_button" -> "live_chat_key_icon"
"revanced_hide_quick_actions_save_to_playlist_button" -> "revanced_hide_playlist_button_icon"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="48dp"
android:height="48dp"
android:viewportWidth="960"
android:viewportHeight="960">
<group
android:scaleX="0.5"
android:scaleY="0.5"
android:pivotX="480"
android:pivotY="480">
<path
android:name="path"
android:pathData="M 480.23 480 Z M 840.23 255.38 L 840.23 704.62 Q 840.23 726.87 823.96 743.43 Q 807.69 760 784.85 760 L 594.62 760 Q 588.08 760 583.65 755.52 Q 579.23 751.03 579.23 744.4 Q 579.23 737.77 583.65 733.5 Q 588.08 729.23 594.62 729.23 L 784.85 729.23 Q 795.62 729.23 802.54 722.31 Q 809.46 715.38 809.46 704.62 L 809.46 255.38 Q 809.46 244.62 802.54 237.69 Q 795.62 230.77 784.85 230.77 L 175.62 230.77 Q 165.62 230.77 158.31 237.69 Q 151 244.62 151 255.38 L 151 285.38 Q 151 291.92 146.51 296.35 Q 142.03 300.77 135.4 300.77 Q 128.77 300.77 124.5 296.35 Q 120.23 291.92 120.23 285.38 L 120.23 255.38 Q 120.23 233.13 136.8 216.57 Q 153.37 200 175.62 200 L 784.85 200 Q 807.69 200 823.96 216.57 Q 840.23 233.13 840.23 255.38 Z M 307.62 760 Q 301.11 760 296.92 755.36 Q 292.74 750.73 292.08 743.77 Q 286.15 681.69 241.73 637.42 Q 197.31 593.15 135.46 586.46 Q 129 586.23 124.62 581.44 Q 120.23 576.65 120.23 570.52 Q 120.23 564 124.94 559.62 Q 129.66 555.23 136.23 555.46 Q 211.54 562.15 264.62 615.58 Q 317.69 669 323.08 744.31 Q 323.54 750.71 319.04 755.36 Q 314.54 760 307.62 760 Z M 458.76 760 Q 452.08 760 447.69 753.92 Q 443.31 747.85 443.08 740.46 Q 435.15 616.46 348.42 529.15 Q 261.69 441.85 137.92 434.69 Q 131.21 434.97 125.72 430.34 Q 120.23 425.72 120.23 419.55 Q 120.23 413 126.88 408.73 Q 133.54 404.46 141.38 404.69 Q 277.04 412.23 372.13 508.92 Q 467.23 605.62 474.62 741.62 Q 474.08 749.84 469.73 754.92 Q 465.39 760 458.76 760 Z M 146.12 760 Q 135.08 760 127.42 751.78 Q 119.77 743.55 119.77 732.89 Q 119.77 722.23 127.63 714.19 Q 135.49 706.15 146.88 706.15 Q 157.54 706.15 165.58 714.38 Q 173.62 722.6 173.62 733.26 Q 173.62 743.92 165.39 751.96 Q 157.17 760 146.12 760 Z"
android:fillColor="?ytTextPrimary" />
</group>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="48dp"
android:height="48dp"
android:viewportWidth="960"
android:viewportHeight="960">
<group
android:scaleX="0.5"
android:scaleY="0.5"
android:pivotX="480"
android:pivotY="480">
<path
android:name="path"
android:pathData="M 480 577.08 Q 474 577.08 469.38 575.08 Q 464.77 573.08 460.54 568.85 L 278.69 387 Q 274.31 382.62 274.04 376.27 Q 273.77 369.92 278.92 364.77 Q 284.08 359.62 290.04 359.62 Q 296 359.62 301.15 364.77 L 480 543.85 L 659.08 364.77 Q 663.46 360.38 669.69 360.12 Q 675.92 359.85 681.08 365 Q 686.23 370.15 686.23 376.12 Q 686.23 382.08 681.08 387.23 L 499.46 568.85 Q 495.23 573.08 490.62 575.08 Q 486 577.08 480 577.08 Z"
android:fillColor="?ytTextPrimary" />
</group>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="48dp"
android:height="48dp"
android:viewportWidth="960"
android:viewportHeight="960">
<group
android:scaleX="0.5"
android:scaleY="0.5"
android:pivotX="480"
android:pivotY="480">
<path
android:name="path"
android:pathData="M 719.13 746.68 L 719.125 213.061 C 718.813 207.935 720.001 205.193 723.709 202.005 L 723.797 201.928 L 723.756 201.975 L 723.796 201.929 L 723.848 201.871 L 723.859 201.857 C 726.967 198.246 729.758 197.473 735.282 197.473 C 740.752 197.473 743.528 198.317 746.386 201.864 L 746.468 201.961 L 746.519 202.007 L 746.548 202.034 C 750.052 205.174 751.027 208.058 750.756 213.321 L 750.762 746.94 C 751.076 752.062 749.896 754.793 746.188 757.985 L 746.091 758.068 L 746.088 758.071 L 746.044 758.121 L 746.026 758.143 C 742.92 761.753 740.127 762.527 734.605 762.527 C 729.132 762.527 726.329 761.624 723.48 758.116 L 723.372 757.999 L 723.315 757.945 C 719.831 754.812 718.859 751.942 719.13 746.68 Z M 240.838 694.078 L 558.051 480.026 L 240.838 264.653 L 240.838 694.078 Z M 209.212 688.382 L 209.212 271.495 C 208.895 260.066 212.056 252.545 219.669 246.088 C 227.009 238.96 234.282 236.4 244.418 236.4 C 248.314 236.4 251.616 236.827 255.216 237.866 C 258.55 238.702 261.666 240.428 265.281 243.201 L 569.478 450.038 C 575.269 453.84 578.794 457.694 581.278 462.805 C 584.019 467.776 585.004 472.778 585.004 479.812 C 585.004 486.834 583.9 492.134 581.138 497.278 C 578.656 502.508 575.191 506.219 569.417 510.004 L 264.877 717.091 C 261.295 719.845 258.431 721.323 255.076 722.173 C 251.476 723.217 248.318 723.601 244.418 723.601 C 234.288 723.601 226.786 720.823 219.447 713.71 C 211.819 707.259 208.902 699.82 209.212 688.382 Z"
android:fillColor="?ytTextPrimary" />
</group>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="48dp"
android:height="48dp"
android:viewportWidth="960"
android:viewportHeight="960">
<group
android:scaleX="0.5"
android:scaleY="0.5"
android:pivotX="480"
android:pivotY="480">
<path
android:name="path"
android:pathData="M 480.13 840 C 430.503 840 383.907 830.553 340.34 811.66 C 296.773 792.767 258.613 766.96 225.86 734.24 C 193.107 701.52 167.277 663.397 148.37 619.87 C 129.457 576.343 120 529.763 120 480.13 C 120 430.35 129.447 383.547 148.34 339.72 C 167.233 295.9 193.04 257.78 225.76 225.36 C 258.48 192.94 296.603 167.277 340.13 148.37 C 383.657 129.457 430.237 120 479.87 120 C 529.65 120 576.453 129.447 620.28 148.34 C 664.1 167.233 702.22 192.873 734.64 225.26 C 767.06 257.647 792.723 295.733 811.63 339.52 C 830.543 383.3 840 430.083 840 479.87 C 840 529.497 830.553 576.093 811.66 619.66 C 792.767 663.227 767.127 701.387 734.74 734.14 C 702.353 766.893 664.267 792.723 620.48 811.63 C 576.7 830.543 529.917 840 480.13 840 Z M 480 809.23 C 571.587 809.23 649.357 777.217 713.31 713.19 C 777.257 649.163 809.23 571.433 809.23 480 C 809.23 388.413 777.257 310.643 713.31 246.69 C 649.357 182.743 571.587 150.77 480 150.77 C 388.567 150.77 310.837 182.743 246.81 246.69 C 182.783 310.643 150.77 388.413 150.77 480 C 150.77 571.433 182.783 649.163 246.81 713.19 C 310.837 777.217 388.567 809.23 480 809.23 Z M 480 480 Z M 424.094 607.092 C 426.644 606.802 429.081 605.814 431.994 603.759 L 603.18 493.856 C 608.821 490.61 610.708 486.835 610.708 480.093 C 610.708 473.363 609.083 469.661 603.358 466.262 L 432.308 356.465 C 429.074 354.183 426.322 353.027 423.415 352.875 C 420.557 352.694 418.272 353.255 415.125 355.23 C 411.887 356.868 409.377 358.833 407.887 361.176 C 406.528 363.56 405.941 366.351 406.133 369.962 L 406.143 589.671 C 405.951 593.279 406.426 596.242 407.743 598.645 C 409.158 600.953 411.291 602.824 414.605 604.477 C 417.669 606.381 420.529 607.317 423.43 607.134 L 424.094 607.092 Z M 480 706.26 C 543.296 706.26 596.269 684.61 640.342 640.268 C 684.628 596.14 706.26 543.188 706.26 480 C 706.26 416.704 684.635 363.73 640.35 319.658 C 596.276 275.37 543.296 253.74 480 253.74 C 416.812 253.74 363.863 275.364 319.739 319.654 C 275.397 363.725 253.74 416.704 253.74 480 C 253.74 543.186 275.395 596.135 319.737 640.261 C 363.862 684.606 416.814 706.26 480 706.26 Z M 480.091 735.78 C 444.985 735.78 411.595 728.964 380.727 715.627 C 349.935 702.238 322.628 683.764 299.427 660.641 C 276.277 637.463 257.794 610.178 244.39 579.415 C 231.038 548.574 224.22 515.203 224.22 480.091 C 224.22 444.88 231.033 411.348 244.369 380.302 C 257.763 349.326 276.244 322.037 299.376 299.062 C 322.548 276.153 349.827 257.79 380.586 244.39 C 411.425 231.036 444.797 224.22 479.909 224.22 C 515.12 224.22 548.651 231.033 579.698 244.369 C 610.669 257.758 637.951 276.119 660.923 299.01 C 683.839 321.958 702.212 349.222 715.612 380.167 C 728.963 411.185 735.78 444.692 735.78 479.909 C 735.78 515.015 728.976 548.408 715.628 579.27 C 702.249 610.064 683.9 637.365 661.005 660.558 C 638.063 683.722 610.783 702.209 579.833 715.613 C 548.816 728.962 515.309 735.78 480.091 735.78 Z"
android:fillColor="?ytTextPrimary" />
</group>
</vector>

0 comments on commit a07b8ec

Please sign in to comment.