feat(YouTube): revert all changes except minimal-header

This commit is contained in:
inotia00 2024-09-30 21:06:16 +09:00
parent 24395de245
commit b1a9e044ad
12 changed files with 378 additions and 9614 deletions

View File

@ -32,6 +32,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
"Custom branding icon" to "custom_branding_icon",
"Extension" to DEFAULT_ICON,
"Gear" to "gear",
"YT alt" to "yt_alt",
"ReVanced" to "revanced",
"ReVanced Colored" to "revanced_colored",
),
@ -116,7 +117,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
// endregion.
SettingsPatch.updatePatchStatus(this)
SettingsPatch.updatePatchStatus("Visual preferences icons")
}
override fun close() {

View File

@ -0,0 +1,96 @@
<animated-vector
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:name="vector"
android:width="360dp"
android:height="360dp"
android:viewportWidth="360"
android:viewportHeight="360">
<group
android:name="group"
android:pivotX="180"
android:pivotY="180">
<path
android:name="path_1"
android:pathData="M 180 80 C 158.885 80 138.304 86.687 121.221 99.098 C 104.139 111.509 91.419 129.017 84.894 149.098 C 78.37 169.18 78.37 190.82 84.894 210.902 C 91.419 230.983 104.139 248.491 121.221 260.902 C 138.304 273.313 158.885 280 180 280 C 201.115 280 221.696 273.313 238.779 260.902 C 255.861 248.491 268.581 230.983 275.106 210.902 C 281.63 190.82 281.63 169.18 275.106 149.098 C 268.581 129.017 255.861 111.509 238.779 99.098 C 221.696 86.687 201.115 80 180 80 Z"
android:fillColor="#111522"
android:strokeWidth="1"/>
</group>
<group
android:name="group_1"
android:pivotX="180"
android:pivotY="180">
<path
android:name="path_2"
android:pathData="M 175.175 173.264 C 180.755 176.487 180.755 184.54 175.175 187.761 L 136.673 209.991 C 131.093 213.212 124.118 209.185 124.118 202.742 L 124.118 158.284 C 124.118 151.84 131.093 147.813 136.673 151.034 L 175.175 173.264 Z"
android:fillColor="#386eff"
android:strokeWidth="1"/>
<path
android:name="path_3"
android:pathData="M 227.906 166.424 C 238.322 172.439 238.322 187.472 227.906 193.485 L 174.337 224.413 C 163.922 230.427 150.901 222.91 150.901 210.882 L 150.901 149.027 C 150.901 137 163.922 129.484 174.337 135.497 L 227.906 166.424 Z"
android:fillColor="#ffffff"
android:strokeWidth="1"/>
<path
android:name="path_4"
android:pathData="M 150.901 159.251 L 175.175 173.264 C 180.755 176.487 180.755 184.54 175.175 187.761 L 150.901 201.776 L 150.901 159.251 Z"
android:fillColor="#111522"
android:strokeWidth="1"
android:fillType="evenOdd"/>
</group>
</vector>
</aapt:attr>
<target android:name="group">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:propertyName="scaleX"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
<objectAnimator
android:propertyName="scaleY"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
</set>
</aapt:attr>
</target>
<target android:name="group_1">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:propertyName="scaleX"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
<objectAnimator
android:propertyName="scaleY"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
<objectAnimator
android:propertyName="rotation"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="360"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
</set>
</aapt:attr>
</target>
</animated-vector>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.YouTube.Launcher" parent="@style/Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowSplashScreenAnimatedIcon">@drawable/avd_anim</item>
<item name="android:windowSplashScreenAnimationDuration">1000</item>
</style>
</resources>

View File

@ -0,0 +1,96 @@
<animated-vector
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:name="vector"
android:width="360dp"
android:height="360dp"
android:viewportWidth="360"
android:viewportHeight="360">
<group
android:name="group"
android:pivotX="180"
android:pivotY="180">
<path
android:name="path_1"
android:pathData="M 180 80 C 158.885 80 138.304 86.687 121.221 99.098 C 104.139 111.509 91.419 129.017 84.894 149.098 C 78.37 169.18 78.37 190.82 84.894 210.902 C 91.419 230.983 104.139 248.491 121.221 260.902 C 138.304 273.313 158.885 280 180 280 C 201.115 280 221.696 273.313 238.779 260.902 C 255.861 248.491 268.581 230.983 275.106 210.902 C 281.63 190.82 281.63 169.18 275.106 149.098 C 268.581 129.017 255.861 111.509 238.779 99.098 C 221.696 86.687 201.115 80 180 80 Z"
android:fillColor="#111522"
android:strokeWidth="1"/>
</group>
<group
android:name="group_1"
android:pivotX="180"
android:pivotY="180">
<path
android:name="path_2"
android:pathData="M 175.175 173.264 C 180.755 176.487 180.755 184.54 175.175 187.761 L 136.673 209.991 C 131.093 213.212 124.118 209.185 124.118 202.742 L 124.118 158.284 C 124.118 151.84 131.093 147.813 136.673 151.034 L 175.175 173.264 Z"
android:fillColor="#ff4151"
android:strokeWidth="1"/>
<path
android:name="path_3"
android:pathData="M 227.906 166.424 C 238.322 172.439 238.322 187.472 227.906 193.485 L 174.337 224.413 C 163.922 230.427 150.901 222.91 150.901 210.882 L 150.901 149.027 C 150.901 137 163.922 129.484 174.337 135.497 L 227.906 166.424 Z"
android:fillColor="#ffffff"
android:strokeWidth="1"/>
<path
android:name="path_4"
android:pathData="M 150.901 159.251 L 175.175 173.264 C 180.755 176.487 180.755 184.54 175.175 187.761 L 150.901 201.776 L 150.901 159.251 Z"
android:fillColor="#111522"
android:strokeWidth="1"
android:fillType="evenOdd"/>
</group>
</vector>
</aapt:attr>
<target android:name="group">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:propertyName="scaleX"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
<objectAnimator
android:propertyName="scaleY"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
</set>
</aapt:attr>
</target>
<target android:name="group_1">
<aapt:attr name="android:animation">
<set>
<objectAnimator
android:propertyName="scaleX"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
<objectAnimator
android:propertyName="scaleY"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
<objectAnimator
android:propertyName="rotation"
android:startOffset="200"
android:duration="600"
android:valueFrom="0"
android:valueTo="360"
android:valueType="floatType"
android:interpolator="@android:anim/overshoot_interpolator"/>
</set>
</aapt:attr>
</target>
</animated-vector>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.YouTube.Launcher" parent="@style/Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowSplashScreenAnimatedIcon">@drawable/avd_anim</item>
<item name="android:windowSplashScreenAnimationDuration">1000</item>
</style>
</resources>

View File

@ -0,0 +1,25 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="48dp"
android:height="48dp"
android:viewportWidth="432"
android:viewportHeight="432">
<path
android:name="path"
android:pathData="M 194.414 248.353 L 250.441 216.008 L 194.414 183.662 L 194.414 248.353 Z"
android:fillColor="?ytTextPrimary"
android:strokeWidth="1"/>
<path
android:name="path_1"
android:pathData="M 267.611 324.108 L 265.557 307.677 C 263.503 307.09 261.229 306.112 258.735 304.743 C 256.241 303.373 254.163 301.906 252.5 300.341 L 237.389 306.796 L 228 290.365 L 241.057 280.536 C 240.861 279.362 240.69 278.14 240.543 276.868 C 240.397 275.597 240.323 274.374 240.323 273.201 C 240.323 272.125 240.397 270.976 240.543 269.753 C 240.69 268.53 240.861 267.137 241.057 265.572 L 228 255.743 L 237.389 239.605 L 252.353 245.913 C 254.309 244.251 256.437 242.759 258.735 241.439 C 261.033 240.118 263.258 239.116 265.41 238.431 L 267.611 222 L 286.389 222 L 288.443 238.578 C 290.986 239.458 293.211 240.461 295.118 241.585 C 297.025 242.71 299.006 244.153 301.06 245.913 L 316.611 239.605 L 326 255.743 L 312.356 266.012 C 312.748 267.381 312.968 268.628 313.016 269.753 C 313.065 270.878 313.09 271.978 313.09 273.054 C 313.09 274.032 313.041 275.083 312.943 276.208 C 312.845 277.333 312.65 278.727 312.356 280.389 L 325.707 290.365 L 316.317 306.796 L 301.06 300.195 C 299.006 301.955 296.952 303.447 294.898 304.669 C 292.844 305.892 290.693 306.845 288.443 307.53 L 286.389 324.108 L 267.611 324.108 Z M 271.132 320 L 282.575 320 L 284.775 304.009 C 287.71 303.227 290.326 302.175 292.624 300.855 C 294.923 299.534 297.343 297.652 299.886 295.207 L 314.557 301.515 L 320.425 291.539 L 307.515 281.856 C 308.004 280.096 308.322 278.531 308.469 277.162 C 308.615 275.792 308.689 274.423 308.689 273.054 C 308.689 271.587 308.615 270.218 308.469 268.946 C 308.322 267.675 308.004 266.208 307.515 264.545 L 320.719 254.569 L 314.85 244.593 L 299.74 250.901 C 298.077 249.043 295.754 247.234 292.771 245.473 C 289.788 243.713 287.074 242.588 284.629 242.099 L 282.868 226.108 L 271.132 226.108 L 269.371 241.952 C 266.437 242.539 263.748 243.517 261.302 244.886 C 258.857 246.255 256.363 248.212 253.82 250.754 L 239.15 244.593 L 233.281 254.569 L 246.045 264.105 C 245.556 265.376 245.214 266.794 245.018 268.359 C 244.822 269.924 244.725 271.538 244.725 273.201 C 244.725 274.668 244.822 276.135 245.018 277.602 C 245.214 279.069 245.507 280.487 245.898 281.856 L 233.281 291.539 L 239.15 301.515 L 253.674 295.353 C 256.021 297.701 258.417 299.559 260.862 300.928 C 263.307 302.297 266.095 303.373 269.225 304.156 L 271.132 320 Z M 276.707 285.964 C 280.325 285.964 283.382 284.717 285.876 282.223 C 288.37 279.729 289.617 276.673 289.617 273.054 C 289.617 269.435 288.37 266.379 285.876 263.885 C 283.382 261.391 280.325 260.144 276.707 260.144 C 273.088 260.144 270.031 261.391 267.537 263.885 C 265.043 266.379 263.796 269.435 263.796 273.054 C 263.796 276.673 265.043 279.729 267.537 282.223 C 270.031 284.717 273.088 285.964 276.707 285.964 Z"
android:fillColor="?ytTextPrimary"
android:strokeColor="?ytTextPrimary"
android:strokeWidth="2.5"/>
<path
android:name="path_2"
android:pathData="M 319.151 164.576 C 316.666 155.291 309.369 147.995 300.085 145.509 C 283.273 141 215.83 141 215.83 141 C 215.83 141 148.388 141 131.576 145.509 C 122.291 147.995 114.995 155.291 112.509 164.576 C 108 181.388 108 216.485 108 216.485 C 108 216.485 108 251.582 112.509 268.394 C 114.995 277.679 122.291 284.975 131.576 287.46 C 148.388 291.97 215.83 291.97 215.83 291.97 C 215.83 291.97 216.28 291.97 217.117 291.967 C 216.745 289.998 216.462 287.998 216.275 285.97 L 215.83 285.97 C 215.83 285.97 152.14 285.97 136.264 281.819 C 127.496 279.532 120.605 272.815 118.258 264.268 C 114 248.793 114 216.485 114 216.485 C 114 216.485 114 184.177 118.258 168.702 C 120.605 160.155 127.496 153.439 136.264 151.151 C 152.14 147 215.83 147 215.83 147 C 215.83 147 279.52 147 295.396 151.151 C 304.164 153.439 311.055 160.155 313.401 168.702 C 317.643 184.177 317.66 216.485 317.66 216.485 C 317.66 216.485 317.66 221.285 317.416 228.071 C 319.456 229.543 321.405 231.133 323.255 232.829 C 323.661 223.535 323.661 216.485 323.661 216.485 C 323.661 216.485 323.643 181.388 319.151 164.576 Z"
android:fillColor="?ytTextPrimary"
android:strokeWidth="1"
android:fillType="evenOdd"/>
</vector>

View File

@ -5,14 +5,9 @@
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.769 531.077 L 427.923 427.313 L 344.461 367.461 L 447.169 367.461 L 480 260 L 511.831 367.461 L 615.539 367.461 L 532.846 427.313 L 564 531.077 L 479.996 467 L 395.769 531.077 Z M 281.692 858.462 L 281.692 596.769 Q 240.538 557.462 220.269 506.077 Q 200 454.692 200 400 Q 200 282.461 281.231 201.231 Q 362.461 120 480 120 Q 597.539 120 678.769 201.231 Q 760 282.461 760 400 Q 760 454.692 739.731 506.077 Q 719.462 557.462 678.308 596.769 L 678.308 858.462 L 480 798.665 L 281.692 858.462 Z M 479.91 649.231 Q 584.385 649.231 656.808 576.898 Q 729.231 504.566 729.231 400.091 Q 729.231 295.615 656.898 223.192 Q 584.566 150.769 480.09 150.769 Q 375.615 150.769 303.192 223.102 Q 230.769 295.434 230.769 399.909 Q 230.769 504.385 303.102 576.808 Q 375.434 649.231 479.91 649.231 Z M 312.461 817.539 L 480 766.385 L 647.539 817.539 L 647.539 622.693 Q 611.385 651.693 568.077 665.846 Q 524.769 680 480 680 Q 435.231 680 391.923 665.846 Q 348.615 651.693 312.461 622.693 L 312.461 817.539 Z M 480 720 Z"
android:fillColor="?ytTextPrimary" />
</group>
<path
android:name="path"
android:pathData="M 311.822 665 C 304.654 665 299.559 661.797 296.536 655.39 C 293.512 648.983 294.203 642.976 298.608 637.37 L 439.16 466.786 L 439.16 311.818 L 403.121 311.818 C 400.738 311.818 398.74 311.009 397.126 309.392 C 395.517 307.778 394.712 305.776 394.712 303.385 C 394.712 300.998 395.517 299.004 397.126 297.403 C 398.74 295.801 400.738 295 403.121 295 L 556.887 295 C 559.27 295 561.266 295.809 562.876 297.427 C 564.489 299.04 565.296 301.043 565.296 303.433 C 565.296 305.82 564.489 307.814 562.876 309.416 C 561.266 311.017 559.27 311.818 556.887 311.818 L 520.848 311.818 L 520.848 466.786 L 661.4 637.37 C 665.805 642.976 666.496 648.983 663.472 655.39 C 660.449 661.797 655.354 665 648.186 665 L 311.822 665 Z M 359.874 624.156 L 600.134 624.156 L 518.446 528.052 L 441.562 528.052 L 359.874 624.156 Z M 311.822 648.182 L 648.186 648.182 L 504.03 472.792 L 504.03 311.818 L 455.978 311.818 L 455.978 472.792 L 311.822 648.182 Z"
android:fillColor="?ytTextPrimary"
android:strokeWidth="1"/>
</vector>