mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-09 11:04:36 +02:00
feat(YouTube/Visual preferences icons): add the patch option ApplyToAll
that do not apply to sub-settings https://github.com/inotia00/ReVanced_Extended/issues/2392
This commit is contained in:
parent
bee0fb0da0
commit
5e4b56cfbe
@ -1,26 +1,29 @@
|
||||
package app.revanced.patches.youtube.layout.visual
|
||||
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.booleanPatchOption
|
||||
import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.stringPatchOption
|
||||
import app.revanced.patches.youtube.layout.branding.icon.CustomBrandingIconPatch
|
||||
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
|
||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||
import app.revanced.util.ResourceGroup
|
||||
import app.revanced.util.Utils.trimIndentMultiline
|
||||
import app.revanced.util.copyResources
|
||||
import app.revanced.util.doRecursively
|
||||
import app.revanced.util.patch.BaseResourcePatch
|
||||
import app.revanced.util.underBarOrThrow
|
||||
import org.w3c.dom.Element
|
||||
import java.io.Closeable
|
||||
|
||||
@Suppress("DEPRECATION", "unused")
|
||||
object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
name = "Visual preferences icons",
|
||||
description = "Adds icons to specific preferences in the settings.",
|
||||
dependencies = setOf(SettingsPatch::class),
|
||||
compatiblePackages = COMPATIBLE_PACKAGE,
|
||||
use = false
|
||||
) {
|
||||
compatiblePackages = COMPATIBLE_PACKAGE
|
||||
), Closeable {
|
||||
private const val DEFAULT_ICON = "extension"
|
||||
private const val EMPTY_ICON = "empty_icon"
|
||||
|
||||
private val RVXSettingsMenuIcon = stringPatchOption(
|
||||
key = "RVXSettingsMenuIcon",
|
||||
@ -37,7 +40,24 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
required = true
|
||||
)
|
||||
|
||||
private val ApplyToAll by booleanPatchOption(
|
||||
key = "ApplyToAll",
|
||||
default = false,
|
||||
title = "Apply to all settings menu",
|
||||
description = """
|
||||
Whether to apply Visual preferences icons to all settings menus.
|
||||
|
||||
If true: icons are applied to the parent PreferenceScreen of YouTube settings, the parent PreferenceScreen of RVX settings and the RVX sub-settings (if supports).
|
||||
|
||||
If false: icons are applied only to the parent PreferenceScreen of YouTube settings and RVX settings.
|
||||
""".trimIndentMultiline(),
|
||||
required = true
|
||||
)
|
||||
|
||||
private lateinit var context: ResourceContext
|
||||
|
||||
override fun execute(context: ResourceContext) {
|
||||
this.context = context
|
||||
|
||||
// Check patch options first.
|
||||
val selectedIconType = RVXSettingsMenuIcon
|
||||
@ -46,6 +66,12 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
val customBrandingIconType = CustomBrandingIconPatch.AppIcon
|
||||
.underBarOrThrow()
|
||||
|
||||
if (ApplyToAll == true) {
|
||||
preferenceKey += rvxPreferenceKey
|
||||
}
|
||||
|
||||
preferenceIcon = preferenceKey.setPreferenceIcon()
|
||||
|
||||
// region copy shared resources.
|
||||
|
||||
arrayOf(
|
||||
@ -55,7 +81,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
),
|
||||
ResourceGroup(
|
||||
"drawable-xxhdpi",
|
||||
"$emptyIcon.png"
|
||||
"$EMPTY_ICON.png"
|
||||
),
|
||||
).forEach { resourceGroup ->
|
||||
context.copyResources("youtube/visual/shared", resourceGroup)
|
||||
@ -90,6 +116,11 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
|
||||
// endregion.
|
||||
|
||||
SettingsPatch.updatePatchStatus(this)
|
||||
}
|
||||
|
||||
override fun close() {
|
||||
|
||||
// region set visual preferences icon.
|
||||
|
||||
arrayOf(
|
||||
@ -109,9 +140,12 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
|
||||
// Add custom RVX settings menu icon
|
||||
in intentKey -> intentIcon[title]
|
||||
in emptyTitles -> emptyIcon
|
||||
in emptyTitles -> EMPTY_ICON
|
||||
else -> null
|
||||
}
|
||||
if (drawableName == EMPTY_ICON &&
|
||||
ApplyToAll == false) return@loop
|
||||
|
||||
drawableName?.let {
|
||||
node.setAttribute("android:icon", "@drawable/$it")
|
||||
}
|
||||
@ -122,35 +156,34 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
|
||||
// endregion.
|
||||
|
||||
SettingsPatch.updatePatchStatus(this)
|
||||
}
|
||||
|
||||
// region preference key and icon.
|
||||
|
||||
private val preferenceKey = setOf(
|
||||
// Main settings (sorted as displayed in the settings)
|
||||
"parent_tools_key",
|
||||
"general_key",
|
||||
private var preferenceKey = setOf(
|
||||
// YouTube settings.
|
||||
"about_key",
|
||||
"accessibility_settings_key",
|
||||
"account_switcher_key",
|
||||
"data_saving_settings_key",
|
||||
"auto_play_key",
|
||||
"video_quality_settings_key",
|
||||
"billing_and_payment_key",
|
||||
"captions_key",
|
||||
"connected_accounts_browse_page_key",
|
||||
"data_saving_settings_key",
|
||||
"general_key",
|
||||
"history_key",
|
||||
"live_chat_key",
|
||||
"notification_key",
|
||||
"offline_key",
|
||||
"pair_with_tv_key",
|
||||
"history_key",
|
||||
"your_data_key",
|
||||
"privacy_key",
|
||||
"parent_tools_key",
|
||||
"premium_early_access_browse_page_key",
|
||||
"privacy_key",
|
||||
"subscription_product_setting_key",
|
||||
"billing_and_payment_key",
|
||||
"notification_key",
|
||||
"connected_accounts_browse_page_key",
|
||||
"live_chat_key",
|
||||
"captions_key",
|
||||
"accessibility_settings_key",
|
||||
"about_key",
|
||||
"video_quality_settings_key",
|
||||
"your_data_key",
|
||||
|
||||
// Main RVX settings (sorted as displayed in the settings)
|
||||
// RVX settings.
|
||||
"revanced_preference_screen_ads",
|
||||
"revanced_preference_screen_alt_thumbnails",
|
||||
"revanced_preference_screen_feed",
|
||||
@ -162,7 +195,9 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_preference_screen_ryd",
|
||||
"revanced_preference_screen_sb",
|
||||
"revanced_preference_screen_misc",
|
||||
)
|
||||
|
||||
private var rvxPreferenceKey = setOf(
|
||||
// Internal RVX settings (items without prefix are listed first, others are sorted alphabetically)
|
||||
"gms_core_settings",
|
||||
"sb_enable_create_segment",
|
||||
@ -173,11 +208,13 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_alt_thumbnail_player",
|
||||
"revanced_alt_thumbnail_search",
|
||||
"revanced_alt_thumbnail_subscriptions",
|
||||
"revanced_change_share_sheet",
|
||||
"revanced_change_shorts_repeat_state",
|
||||
"revanced_custom_player_overlay_opacity",
|
||||
"revanced_default_app_settings",
|
||||
"revanced_default_playback_speed",
|
||||
"revanced_default_video_quality_wifi",
|
||||
"revanced_disable_default_playback_speed_music",
|
||||
"revanced_disable_hdr_auto_brightness",
|
||||
"revanced_disable_hdr_video",
|
||||
"revanced_disable_quic_protocol",
|
||||
@ -186,10 +223,13 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_enable_external_browser",
|
||||
"revanced_enable_old_quality_layout",
|
||||
"revanced_enable_open_links_directly",
|
||||
"revanced_enable_opus_codec",
|
||||
"revanced_enable_save_and_restore_brightness",
|
||||
"revanced_enable_swipe_brightness",
|
||||
"revanced_enable_swipe_haptic_feedback",
|
||||
"revanced_enable_swipe_lowest_value_auto_brightness",
|
||||
"revanced_enable_swipe_press_to_engage",
|
||||
"revanced_enable_swipe_to_switch_video",
|
||||
"revanced_enable_swipe_volume",
|
||||
"revanced_enable_watch_panel_gestures",
|
||||
"revanced_hide_clip_button",
|
||||
@ -213,11 +253,14 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_hide_player_flyout_menu_audio_track",
|
||||
"revanced_hide_player_flyout_menu_captions",
|
||||
"revanced_hide_player_flyout_menu_help",
|
||||
"revanced_hide_player_flyout_menu_listen_with_youtube_music",
|
||||
"revanced_hide_player_flyout_menu_lock_screen",
|
||||
"revanced_hide_player_flyout_menu_loop_video",
|
||||
"revanced_hide_player_flyout_menu_more_info",
|
||||
"revanced_hide_player_flyout_menu_pip",
|
||||
"revanced_hide_player_flyout_menu_premium_controls",
|
||||
"revanced_hide_player_flyout_menu_playback_speed",
|
||||
"revanced_hide_player_flyout_menu_quality_footer",
|
||||
"revanced_hide_player_flyout_menu_quality_header",
|
||||
"revanced_hide_player_flyout_menu_report",
|
||||
"revanced_hide_player_flyout_menu_stable_volume",
|
||||
"revanced_hide_player_flyout_menu_stats_for_nerds",
|
||||
@ -235,7 +278,9 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_hide_quick_actions_share_button",
|
||||
"revanced_hide_remix_button",
|
||||
"revanced_hide_report_button",
|
||||
"revanced_hide_rewards_button",
|
||||
"revanced_hide_share_button",
|
||||
"revanced_hide_shop_button",
|
||||
"revanced_hide_shorts_comments_button",
|
||||
"revanced_hide_shorts_dislike_button",
|
||||
"revanced_hide_shorts_like_button",
|
||||
@ -247,6 +292,10 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_hide_shorts_shelf_search",
|
||||
"revanced_hide_shorts_shelf_subscriptions",
|
||||
"revanced_hide_shorts_toolbar",
|
||||
"revanced_hide_thanks_button",
|
||||
"revanced_hide_toolbar_cast_button",
|
||||
"revanced_hide_toolbar_create_button",
|
||||
"revanced_hide_toolbar_notification_button",
|
||||
"revanced_overlay_button_always_repeat",
|
||||
"revanced_overlay_button_copy_video_url",
|
||||
"revanced_overlay_button_copy_video_url_timestamp",
|
||||
@ -280,6 +329,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_preference_screen_toolbar",
|
||||
"revanced_preference_screen_video_description",
|
||||
"revanced_preference_screen_video_filter",
|
||||
"revanced_preference_screen_watch_history",
|
||||
"revanced_sanitize_sharing_links",
|
||||
"revanced_swipe_gestures_lock_mode",
|
||||
"revanced_swipe_magnitude_threshold",
|
||||
@ -299,13 +349,16 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_custom_playback_speeds",
|
||||
"revanced_custom_playback_speed_menu_type",
|
||||
"revanced_default_video_quality_mobile",
|
||||
"revanced_disable_like_dislike_glow",
|
||||
"revanced_disable_default_playback_speed_live",
|
||||
"revanced_enable_custom_playback_speed",
|
||||
"revanced_external_downloader_package_name",
|
||||
"revanced_hide_shorts_comments_disabled_button",
|
||||
"revanced_hide_player_flyout_menu_captions_footer",
|
||||
"revanced_hide_player_flyout_menu_quality_footer",
|
||||
"revanced_remember_playback_speed_last_selected",
|
||||
"revanced_remember_playback_speed_last_selected_toast",
|
||||
"revanced_remember_video_quality_last_selected",
|
||||
"revanced_remember_video_quality_last_selected_toast",
|
||||
"revanced_restore_old_video_quality_menu",
|
||||
"revanced_enable_debug_buffer_logging",
|
||||
"revanced_whitelist_settings",
|
||||
@ -314,7 +367,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
// A lot of mappings here.
|
||||
// The performance impact should be negligible in this context,
|
||||
// as the operations involved are not computationally intensive.
|
||||
private val preferenceIcon = preferenceKey.associateWith { title ->
|
||||
private fun Set<String>.setPreferenceIcon() = associateWith { title ->
|
||||
when (title) {
|
||||
// Main RVX settings
|
||||
"revanced_preference_screen_general" -> "general_key_icon"
|
||||
@ -326,6 +379,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_alt_thumbnail_player" -> "revanced_preference_screen_player_icon"
|
||||
"revanced_alt_thumbnail_search" -> "revanced_hide_shorts_shelf_search_icon"
|
||||
"revanced_alt_thumbnail_subscriptions" -> "revanced_hide_navigation_subscriptions_button_icon"
|
||||
"revanced_change_share_sheet" -> "revanced_hide_shorts_share_button_icon"
|
||||
"revanced_custom_player_overlay_opacity" -> "revanced_swipe_overlay_background_alpha_icon"
|
||||
"revanced_default_app_settings" -> "revanced_preference_screen_settings_menu_icon"
|
||||
"revanced_default_playback_speed" -> "revanced_overlay_button_speed_dialog_icon"
|
||||
@ -344,9 +398,12 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"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_listen_with_youtube_music" -> "revanced_hide_player_youtube_music_button_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_pip" -> "offline_key_icon"
|
||||
"revanced_hide_player_flyout_menu_premium_controls" -> "premium_early_access_browse_page_key_icon"
|
||||
"revanced_hide_player_flyout_menu_quality_header" -> "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"
|
||||
@ -362,6 +419,9 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_hide_shorts_shelf_home_related_videos" -> "revanced_hide_navigation_home_button_icon"
|
||||
"revanced_hide_shorts_shelf_subscriptions" -> "revanced_hide_navigation_subscriptions_button_icon"
|
||||
"revanced_hide_shorts_toolbar" -> "revanced_preference_screen_toolbar_icon"
|
||||
"revanced_hide_toolbar_cast_button" -> "revanced_hide_player_cast_button_icon"
|
||||
"revanced_hide_toolbar_create_button" -> "revanced_hide_navigation_create_button_icon"
|
||||
"revanced_hide_toolbar_notification_button" -> "notification_key_icon"
|
||||
"revanced_preference_screen_account_menu" -> "account_switcher_key_icon"
|
||||
"revanced_preference_screen_channel_bar" -> "account_switcher_key_icon"
|
||||
"revanced_preference_screen_channel_profile" -> "account_switcher_key_icon"
|
||||
@ -372,13 +432,15 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"revanced_preference_screen_patch_information" -> "about_key_icon"
|
||||
"revanced_preference_screen_shorts_player" -> "revanced_preference_screen_shorts_icon"
|
||||
"revanced_preference_screen_video_filter" -> "revanced_preference_screen_video_icon"
|
||||
"revanced_preference_screen_watch_history" -> "history_key_icon"
|
||||
"revanced_swipe_gestures_lock_mode" -> "revanced_hide_player_flyout_menu_lock_screen_icon"
|
||||
"revanced_disable_hdr_auto_brightness" -> "revanced_disable_hdr_video_icon"
|
||||
else -> "${title}_icon"
|
||||
}
|
||||
}
|
||||
|
||||
private lateinit var preferenceIcon: Map<String, String>
|
||||
private val intentIcon = intentKey.associateWith { "${it}_icon" }
|
||||
private const val emptyIcon = "empty_icon"
|
||||
|
||||
// endregion.
|
||||
|
||||
|
@ -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 388.351 504.732 C 389.685 483.86 397.531 468.552 411.89 458.809 L 706.121 252.116 L 499.351 546.501 C 490.121 560.501 474.851 568.257 453.543 569.77 C 432.236 571.283 415.71 566.04 403.966 554.04 C 392.223 542.039 387.018 525.603 388.351 504.732 Z M 443.79 133.952 C 480.252 133.952 514.791 138.836 547.406 148.605 C 580.022 158.374 612.509 174.157 644.867 195.952 L 619.021 216.029 C 592.098 198.593 563.521 185.683 533.29 177.298 C 503.06 168.913 473.29 164.721 443.982 164.721 C 352.756 164.721 275.25 196.934 211.466 261.36 C 147.682 325.786 115.79 403.821 115.79 495.465 C 115.79 524.405 119.701 553.311 127.521 582.183 C 135.342 611.054 146.731 637.977 161.688 662.952 L 543.819 662.952 C 548.08 674.91 555.02 685.448 563.853 693.721 L 163.175 693.721 C 157.413 693.721 151.742 692.042 146.161 688.683 C 140.581 685.324 136.149 680.618 132.867 674.567 C 119.637 650.772 108.355 624.298 99.021 595.144 C 89.688 565.99 85.021 532.746 85.021 495.413 C 85.021 446.234 94.347 399.742 112.999 355.939 C 131.651 312.136 157.074 273.828 189.268 241.016 C 221.462 208.204 259.478 182.157 303.316 162.875 C 347.154 143.593 393.979 133.952 443.79 133.952 Z M 774.467 412.847 C 766.903 381.796 754.249 353.629 736.505 328.347 L 757.044 302.501 C 779.3 338.296 794.582 371.565 802.89 402.308 C 802.963 402.579 803.036 402.851 803.109 403.123 C 792.96 406.195 783.516 410.223 774.998 415.049 C 774.823 414.316 774.646 413.582 774.467 412.847 Z M 762.978 475.278 L 874.978 475.278 L 874.978 527.578 L 793.518 527.578 L 793.518 743.348 C 793.518 767.548 785.788 787.381 770.328 802.848 C 754.868 818.314 735.175 826.048 711.248 826.048 C 687.322 826.048 667.615 818.318 652.128 802.858 C 636.642 787.398 628.898 767.704 628.898 743.778 C 628.898 719.851 636.632 700.144 652.098 684.658 C 667.565 669.171 687.398 661.428 711.598 661.428 C 722.418 661.428 732.238 663.018 741.058 666.198 C 749.878 669.378 757.185 674.148 762.978 680.508 L 762.978 475.278 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
@ -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 498.445 225.191 C 409.356 225.838 332.555 239.944 268.01 267.467 C 188.575 301.394 135.618 351.697 109.18 418.362 C 101.242 438.803 96.979 458.062 96.352 476.146 C 88.714 607.252 172.458 681.097 224.169 713.924 C 244.921 727.904 263.372 734.832 263.372 734.832 L 287.071 658.597 L 294.079 639.858 C 325.275 645.791 359.951 649.928 398.303 652.167 C 515.733 659.061 614.148 645.566 693.583 611.631 C 773.017 577.737 825.537 527.842 851.135 461.903 C 876.732 396.008 864.533 342.108 814.505 300.154 L 814.473 300.178 C 775.008 267.112 714.252 244.985 632.37 233.678 L 572.196 426.243 C 570.897 433.312 568.657 441.327 565.19 450.572 C 559.043 466.019 551.647 478.747 542.959 488.769 C 534.258 498.807 524.523 506.634 513.737 512.347 C 502.941 518.017 491.197 521.948 478.518 524.105 C 465.825 526.254 452.715 526.918 439.159 526.125 C 425.585 525.33 414.037 523.471 404.537 520.539 C 395.028 517.61 386.282 512.762 378.304 505.965 C 372.411 499.296 368.985 490.546 368.048 479.692 C 367.107 468.851 369.725 455.441 375.884 439.461 C 381.399 425.573 388.375 413.463 396.83 403.174 C 405.276 392.881 415.157 384.897 426.462 379.237 C 437.255 373.565 448.857 369.761 461.278 367.847 C 473.665 365.944 487.441 365.446 502.556 366.332 C 515.082 367.074 526.741 368.933 537.562 371.95 C 542.691 373.364 547.191 375.238 551.102 377.488 L 597.276 229.622 C 585.876 228.54 574.214 227.586 562.088 226.888 C 540.223 225.599 519.004 225.042 498.445 225.191 Z M 518.855 249.594 C 532.487 249.804 546.427 250.324 560.678 251.16 L 560.698 251.16 C 562.213 251.25 563.612 251.406 565.109 251.5 L 535.4 346.648 C 525.29 344.382 514.888 342.713 503.978 342.062 L 503.954 342.062 C 487.461 341.097 472.038 341.603 457.634 343.816 L 457.626 343.816 C 442.789 346.102 428.615 350.728 415.512 357.582 C 401.195 364.78 388.585 375.037 378.204 387.688 C 367.985 400.129 359.768 414.509 353.446 430.424 L 353.407 430.541 L 353.357 430.663 C 346.385 448.758 342.547 465.348 343.979 481.818 C 345.259 496.642 350.489 511.07 360.254 522.123 L 361.391 523.411 L 362.7 524.521 C 372.993 533.291 384.783 539.883 397.476 543.79 C 409.48 547.489 422.794 549.525 437.751 550.399 C 452.997 551.29 467.958 550.539 482.525 548.071 L 482.54 548.071 C 497.555 545.518 511.798 540.792 524.906 533.909 L 524.946 533.885 L 524.987 533.872 C 538.522 526.703 550.686 516.838 561.168 504.753 C 572.054 492.194 580.69 477.027 587.621 459.617 L 587.714 459.387 L 587.799 459.155 C 591.346 449.699 593.758 441.116 595.389 433.03 L 649.024 261.425 C 717.399 273.095 767.93 292.827 799.018 318.869 L 799.418 319.208 C 820.988 337.418 832.841 356.322 837.627 377.455 C 842.446 398.732 840.147 423.42 828.635 453.052 L 828.635 453.061 C 805.611 512.368 759.271 557.188 684.154 589.241 L 684.147 589.249 C 609.196 621.269 514.533 634.631 399.718 627.888 L 399.71 627.888 C 362.232 625.704 328.564 621.677 298.567 615.969 L 278.621 612.173 L 264.224 650.675 L 248.83 700.171 C 244.984 697.977 241.9 696.607 237.614 693.718 L 237.338 693.538 L 237.059 693.363 C 189.221 662.996 113.458 597.771 120.463 477.563 L 120.487 477.28 L 120.495 476.99 C 121.009 462.165 124.543 445.616 131.66 427.278 C 155.541 367.135 202.398 321.901 277.438 289.85 C 333.686 265.863 400.767 252.328 478.881 249.884 C 491.901 249.475 505.222 249.379 518.855 249.594 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
@ -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 618.34 800 L 550.11 800 Q 544.08 800 539.81 795.73 Q 535.54 791.46 535.54 785.77 L 535.54 717.26 L 496.34 677.86 Q 492.23 674.13 492.23 667.81 Q 492.23 661.49 496.46 657.57 L 535.54 618.34 L 535.54 550.11 Q 535.54 544.08 539.81 539.81 Q 544.08 535.54 549.77 535.54 L 618.28 535.54 L 657.68 496.34 Q 661.41 492.23 667.73 492.23 Q 674.05 492.23 678 496.46 L 717.5 535.54 L 786.19 535.54 Q 791.92 535.54 795.96 539.81 Q 800 544.08 800 549.77 L 800 618.28 L 839.2 657.68 Q 843.31 661.41 843.31 667.73 Q 843.31 674.05 839.08 677.97 L 800 717.2 L 800 785.43 Q 800 791.46 795.96 795.73 Q 791.92 800 786.54 800 L 717.56 800 L 677.9 839.2 Q 674.13 843.31 667.81 843.31 Q 661.49 843.31 657.57 839.08 L 618.34 800 Z M 667.77 767.38 Q 708.85 767.38 738.12 738.06 Q 767.38 708.73 767.38 667.57 Q 767.38 626.42 738.07 597.67 Q 708.76 568.92 667.77 568.92 L 667.77 767.38 Z M 480 190.77 Q 359.14 190.77 274.96 274.96 Q 190.77 359.14 190.77 480 Q 190.77 568.98 237.73 639.18 Q 284.69 709.38 360 743.23 L 360 624.62 Q 360 618.08 364.48 613.65 Q 368.97 609.23 375.6 609.23 Q 382.23 609.23 386.5 613.65 Q 390.77 618.08 390.77 624.62 L 390.77 772.31 Q 390.77 784.08 382.81 792.04 Q 374.85 800 363.08 800 L 215.38 800 Q 208.85 800 204.42 795.52 Q 200 791.03 200 784.4 Q 200 777.77 204.42 773.5 Q 208.85 769.23 215.38 769.23 L 344.85 769.23 Q 263.38 729.69 211.69 652.62 Q 160 575.54 160 480 Q 160 413.4 185.04 355.24 Q 210.08 297.08 253.58 253.58 Q 297.08 210.08 355.27 185.04 Q 413.46 160 480.33 160 Q 585.47 160 667.73 221.85 Q 750 283.69 782.46 379.31 Q 784.92 385.15 782.07 390.54 Q 779.22 395.93 773.3 397.74 Q 766.62 400.31 761.38 397 Q 756.15 393.69 753.69 387.85 Q 724.69 302 649.99 246.38 Q 575.28 190.77 480 190.77 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
@ -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 218.38 814.62 Q 157.92 743.54 120.5 659.08 Q 83.08 574.62 83.08 480.77 Q 83.08 386.92 120.5 302.46 Q 157.92 218 218.38 146.15 L 133.08 146.15 Q 127.38 146.15 123.69 142.46 Q 120 138.77 120 133.08 Q 120 127.38 123.69 123.69 Q 127.38 120 133.08 120 L 246.92 120 Q 259.15 120 266.88 127.73 Q 274.62 135.46 274.62 147.69 L 274.62 263.08 Q 274.62 268 271.31 271.69 Q 268 275.38 262.31 275.38 Q 257.38 275.38 253.31 271.31 Q 249.23 267.23 249.23 262.31 L 249.23 150.08 Q 187.31 221.23 147.88 304.19 Q 108.46 387.15 108.46 480.77 Q 108.46 573.62 147.88 656.19 Q 187.31 738.77 249.23 809.15 L 249.23 697.69 Q 249.23 692.77 253.31 689.08 Q 257.38 685.38 262.31 685.38 Q 267.23 685.38 270.92 689.08 Q 274.62 692.77 274.62 697.69 L 274.62 812.31 Q 274.62 824.54 266.88 832.27 Q 259.15 840 246.92 840 L 132.31 840 Q 127.38 840 123.69 835.92 Q 120 831.85 120 826.92 Q 120 822 124.08 818.31 Q 128.15 814.62 133.08 814.62 L 218.38 814.62 Z M 646 792.46 Q 629.08 798.92 610.15 798.31 Q 591.23 797.69 573.54 789.23 L 334.92 679.31 Q 328 675.85 325.42 668.27 Q 322.85 660.69 325.85 653.54 L 325.08 653.85 Q 328.54 643.31 336.77 637.08 Q 345 630.85 356.54 629.62 L 484.77 616.23 L 367.77 297.77 Q 365.08 291.15 368.27 285.65 Q 371.46 280.15 378.08 278.23 Q 383.92 275.54 389.54 278.35 Q 395.15 281.15 397.85 287.77 L 515.77 610.15 Q 520.77 622.62 513.15 634.35 Q 505.54 646.08 492.08 648.08 L 364.62 659.15 L 586.46 762.15 Q 597.77 767.69 610.85 767.69 Q 623.92 767.69 636 763.92 L 774.23 712.85 Q 817.08 697.31 836.5 656.73 Q 855.92 616.15 840.38 573.31 L 782.23 414.31 Q 779.54 407.69 781.96 402.46 Q 784.38 397.23 791 394.54 Q 797.62 391.85 803.23 394.27 Q 808.85 396.69 811.54 403.31 L 868.69 562.31 Q 889.38 617.62 864.96 669.81 Q 840.54 722 785.23 741.92 L 646 792.46 Z M 521.92 380.38 Q 519.23 373.77 522.42 368.65 Q 525.62 363.54 532.23 360.85 Q 538.08 358.15 543.58 361.35 Q 549.08 364.54 551.77 370.38 L 602.85 510.85 Q 605.54 516.46 602.73 522.08 Q 599.92 527.69 594.08 530.38 Q 588.46 533.08 582.46 529.77 Q 576.46 526.46 573.77 520.85 L 521.92 380.38 Z M 645.46 378.46 Q 642.77 371.85 645.58 366.62 Q 648.38 361.38 655 358.69 Q 661.62 356.77 667.12 359.19 Q 672.62 361.62 674.54 368.23 L 712.62 469.92 Q 715.31 475.77 712 482.15 Q 708.69 488.54 702.08 491.23 Q 696.23 492.92 690.73 490.23 Q 685.23 487.54 682.54 480.92 L 645.46 378.46 Z M 677.77 612.92 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
@ -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 395.77 531.08 L 427.92 427.31 L 344.46 367.46 L 447.17 367.46 L 480 260 L 511.83 367.46 L 615.54 367.46 L 532.85 427.31 L 564 531.08 L 480 467 L 395.77 531.08 Z M 281.69 858.46 L 281.69 596.77 Q 240.54 557.46 220.27 506.08 Q 200 454.69 200 400 Q 200 282.46 281.23 201.23 Q 362.46 120 480 120 Q 597.54 120 678.77 201.23 Q 760 282.46 760 400 Q 760 454.69 739.73 506.08 Q 719.46 557.46 678.31 596.77 L 678.31 858.46 L 480 798.67 L 281.69 858.46 Z M 479.91 649.23 Q 584.38 649.23 656.81 576.9 Q 729.23 504.57 729.23 400.09 Q 729.23 295.62 656.9 223.19 Q 584.57 150.77 480.09 150.77 Q 375.62 150.77 303.19 223.1 Q 230.77 295.43 230.77 399.91 Q 230.77 504.38 303.1 576.81 Q 375.43 649.23 479.91 649.23 Z M 312.46 817.54 L 480 766.38 L 647.54 817.54 L 647.54 622.69 Q 611.38 651.69 568.08 665.85 Q 524.77 680 480 680 Q 435.23 680 391.92 665.85 Q 348.62 651.69 312.46 622.69 L 312.46 817.54 Z M 480 720 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
@ -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 314.521 348.199 C 315.177 392.878 332.824 432.132 362.992 462.206 C 393.065 492.373 434.106 510.699 480 510.699 C 525.894 510.699 566.934 492.374 597.007 462.207 C 627.175 432.133 644.823 392.878 645.479 348.199 L 617.761 348.199 C 616.864 384.862 602.173 417.833 577.451 442.648 C 552.636 467.37 517.851 482.999 480 482.999 C 442.149 482.999 407.341 467.394 382.55 442.649 C 357.804 417.857 343.136 384.862 342.239 348.199 L 314.521 348.199 Z M 642.672 280.799 L 642.189 278.391 C 634.633 240.467 614.238 207.648 585.423 183.898 C 556.671 160.065 520.235 145.999 480 145.999 C 439.764 145.999 403.329 160.065 374.577 183.897 C 345.762 207.648 325.366 240.467 317.81 278.39 L 317.648 279.193 L 317.326 280.799 L 213.4 280.799 L 213.4 749.599 C 213.266 767.512 220.432 783.281 232.318 795.078 C 244.114 806.964 259.879 814.133 277.793 813.999 L 682.2 813.999 C 700.112 814.133 715.838 806.921 727.68 795.079 C 739.522 783.237 746.734 767.518 746.6 749.606 L 746.6 280.799 L 642.672 280.799 Z M 480 173.699 C 511.862 173.699 541.701 184.795 565.007 203.027 C 588.259 221.341 605.705 247.444 613.326 277.059 L 614.28 280.799 L 345.72 280.799 L 346.038 279.552 L 346.674 277.058 C 354.295 247.443 371.743 221.34 394.993 203.026 C 418.3 184.794 448.137 173.699 480 173.699 Z M 718.9 749.613 C 718.77 759.485 714.558 768.99 708.119 775.524 C 701.586 781.962 692.072 786.169 682.2 786.299 L 277.786 786.299 C 267.914 786.169 258.409 781.957 251.875 775.518 C 245.437 768.985 241.23 759.471 241.1 749.599 L 241.1 308.499 L 718.9 308.499 L 718.9 749.613 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
@ -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 464.405 596.484 L 403.466 596.484 L 403.466 563.961 L 409.952 563.961 L 520.988 563.97 L 521.125 564.006 L 521.263 564.043 L 521.346 564.067 C 521.351 564.068 521.357 564.07 521.362 564.071 C 521.586 563.89 521.906 563.508 522.579 562.747 L 522.725 562.582 L 522.783 562.533 L 522.845 562.479 L 522.907 562.427 C 523.658 561.813 523.974 561.57 524.097 561.427 C 524.075 561.394 524.037 561.298 523.972 561.083 L 523.956 561.029 L 523.898 560.723 L 523.907 498.982 L 523.944 498.845 L 523.98 498.708 L 524.004 498.623 C 524.005 498.618 524.008 498.614 524.009 498.608 C 523.826 498.384 523.444 498.063 522.681 497.388 L 522.505 497.233 L 522.398 497.104 L 522.356 497.055 C 521.749 496.31 521.506 495.995 521.365 495.87 C 521.331 495.893 521.236 495.93 521.026 495.994 L 520.971 496.01 L 520.665 496.068 L 439.403 496.068 C 429.851 495.783 420.102 492.002 413.607 485.841 C 407.443 479.336 403.747 469.558 403.466 460.016 L 403.466 399.453 C 403.769 389.85 407.767 380.089 413.769 373.579 C 420.298 367.569 429.938 363.808 439.518 363.515 L 464.405 363.515 L 464.405 343.113 L 496.927 343.113 L 496.927 363.515 L 556.534 363.515 L 556.534 396.038 L 550.048 396.038 L 438.928 396.029 L 438.677 395.967 L 438.558 395.936 C 438.547 395.933 438.536 395.93 438.526 395.927 C 438.304 396.105 437.988 396.483 437.313 397.247 L 437.156 397.427 L 437.023 397.536 L 436.986 397.568 C 436.237 398.184 435.917 398.432 435.789 398.576 C 435.813 398.611 435.85 398.704 435.913 398.908 L 435.929 398.962 L 435.988 399.271 L 435.98 460.64 L 435.942 460.779 L 435.904 460.92 L 435.883 460.99 C 435.881 460.997 435.879 461.004 435.878 461.01 C 436.059 461.232 436.437 461.55 437.196 462.221 L 437.376 462.378 L 437.486 462.511 L 437.517 462.548 C 438.132 463.296 438.381 463.616 438.527 463.743 C 438.561 463.721 438.653 463.683 438.853 463.621 L 438.911 463.604 L 439.221 463.545 L 439.321 463.545 L 520.503 463.546 C 529.899 463.873 539.6 467.981 546.224 474.043 C 552.34 480.66 556.213 490.214 556.534 499.602 L 556.534 560.554 C 556.214 570.189 552.091 579.989 545.888 586.508 C 539.245 592.474 529.699 596.19 520.369 596.484 L 496.927 596.484 L 496.927 616.886 L 464.405 616.886 L 464.405 596.484 Z M 480 758.66 C 543.073 698.94 594.978 647.783 635.712 605.19 C 676.454 562.597 708.822 525.373 732.818 493.52 C 756.815 461.66 773.544 433.413 783.005 408.78 C 792.466 384.153 797.196 359.827 797.196 335.8 C 797.196 294.267 783.956 259.72 757.473 232.16 C 730.992 204.593 697.862 190.81 658.084 190.81 C 625.488 190.81 595.723 200.67 568.791 220.39 C 541.86 240.103 516.511 270.757 492.746 312.35 L 467.031 312.35 C 442.92 270.91 417.404 240.293 390.486 220.5 C 363.567 200.707 334.044 190.81 301.916 190.81 C 262.633 190.81 229.625 204.593 202.892 232.16 C 176.166 259.72 162.804 294.41 162.804 336.23 C 162.804 360.11 167.572 384.38 177.111 409.04 C 186.655 433.7 203.258 461.953 226.921 493.8 C 250.577 525.653 282.984 562.81 324.143 605.27 C 365.301 647.73 417.254 698.86 480 758.66 Z M 480 799.96 L 458.284 779.12 C 393.809 717.96 340.611 665.44 298.689 621.56 C 256.765 577.673 223.5 539.027 198.895 505.62 C 174.288 472.207 157.18 442.123 147.571 415.37 C 137.962 388.617 133.158 362.047 133.158 335.66 C 133.158 286.033 149.377 244.357 181.813 210.63 C 214.248 176.903 254.353 160.04 302.128 160.04 C 337.261 160.04 369.91 169.81 400.072 189.35 C 430.235 208.89 456.878 237.453 480 275.04 C 504.998 236.473 532.187 207.667 561.565 188.62 C 590.938 169.567 623.04 160.04 657.872 160.04 C 705.647 160.04 745.752 176.903 778.188 210.63 C 810.624 244.357 826.842 286.033 826.842 335.66 C 826.842 362.047 822.038 388.617 812.429 415.37 C 802.82 442.123 785.741 472.15 761.193 505.45 C 736.644 538.75 703.379 577.397 661.399 621.39 C 619.417 665.383 566.19 717.96 501.716 779.12 L 480 799.96 Z"
|
||||
android:fillColor="?ytTextPrimary" />
|
||||
</group>
|
||||
</vector>
|
Loading…
x
Reference in New Issue
Block a user