Skip to content

Commit 984cd21

Browse files
authored
feat(YouTube/Overlay buttons): add Collapse button and update thin-type overlay button icons (inotia00#75)
* update overlay button icons * Add files via upload * Update OverlayButtonsPatch.kt * allow changing collapse button style * allow changing collapse button style * Update OverlayButtonsPatch.kt * update overlay button icons * update overlay button icons
1 parent 0a69582 commit 984cd21

File tree

112 files changed

+8
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+8
-7
lines changed

src/main/kotlin/app/revanced/patches/youtube/player/overlaybuttons/OverlayButtonsPatch.kt

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
233233
ResourceGroup(
234234
"drawable-$dpi",
235235
"yt_outline_gear_white_24.png",
236+
"yt_outline_chevron_down_white_24.png",
236237
"quantum_ic_closed_caption_off_grey600_24.png",
237238
"quantum_ic_closed_caption_off_white_24.png",
238239
"quantum_ic_closed_caption_white_24.png"
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<vector android:tint="?colorControlNormal" android:height="24.0dip" android:width="24.0dip" android:viewportWidth="24.0" android:viewportHeight="24.0"
3-
xmlns:android="http://schemas.android.com/apk/res/android">
4-
<path android:fillColor="@android:color/white" android:pathData="M 4.74 19.2513 L 4.74 15.3136 L 5.615 15.3125 L 5.615 18.3775 L 8.6775 18.3775 L 8.6776 19.2513 L 4.74 19.2513 Z M 15.3224 19.2513 L 15.3225 18.3775 L 18.385 18.3775 L 18.385 15.3125 L 19.26 15.3136 L 19.26 19.2513 L 15.3224 19.2513 Z M 4.74 8.6863 L 4.74 4.7487 L 8.6776 4.7487 L 8.6775 5.6225 L 5.615 5.6225 L 5.615 8.6875 L 4.74 8.6863 Z M 18.3849 8.6863 L 18.385 5.6225 L 15.3225 5.6225 L 15.3224 4.7487 L 19.26 4.7487 L 19.26 8.6863 L 18.385 8.6875 L 18.3849 8.6863 Z" />
5-
</vector>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<vector android:tint="?colorControlNormal" android:height="24.0dip" android:width="24.0dip" android:viewportWidth="24.0" android:viewportHeight="24.0"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
4+
<path android:fillColor="@android:color/white" android:pathData="M 5.29 20 L 5.3 13.5 L 6 13.5 L 5.99 19.273 L 10.628 19.273 L 10.628 20 L 5.29 20 Z M 13.388 20 L 13.388 19.273 L 18.015 19.273 L 18.015 13.5 L 18.715 13.5 L 18.715 20 L 13.388 20 Z M 5.29 10.5 L 5.29 4 L 10.628 4 L 10.628 4.727 L 5.99 4.727 L 5.99 10.5 L 5.29 10.5 Z M 18.015 10.5 L 18.015 4.727 L 13.388 4.727 L 13.388 4 L 18.715 4 L 18.715 10.5 L 18.015 10.5 Z" android:strokeColor="@android:color/white" android:strokeWidth="0.3" />
5+
</vector>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<vector android:name="vector" android:height="32.0dip" android:width="32.0dip" android:viewportWidth="32.0" android:viewportHeight="32.0"
33
xmlns:android="http://schemas.android.com/apk/res/android">
4-
<path android:name="path" android:pathData="M 5.282 20 C 4.674 20 4.099 19.724 3.72 19.25 L 3.012 18.365 C 2.49 17.712 2.429 16.803 2.859 16.086 L 4.075 14.059 L 3.384 12.332 C 2.995 11.36 3.142 10.256 3.77 9.418 L 4.667 8.222 L 4.667 6 C 4.667 4.896 5.562 4 6.667 4 L 19.333 4 C 20.438 4 21.333 4.896 21.333 6 L 21.333 19.171 C 21.333 20.005 21.073 20.818 20.588 21.496 L 15.337 28.848 C 15.2 29.04 14.949 29.11 14.733 29.017 L 14.662 28.987 C 12.828 28.201 11.853 26.183 12.378 24.258 L 13.54 20 L 5.282 20 Z M 26 18.669 C 27.105 18.669 28 17.774 28 16.669 L 28 6.003 C 28 4.898 27.105 4.003 26 4.003 L 23.333 4.003 L 23.333 18.669 L 26 18.669 Z" android:strokeColor="#ffffffff" android:strokeWidth="1.25" />
4+
<path android:name="path" android:pathData="M 5.071 13.798 C 5.171 13.631 5.188 13.426 5.115 13.244 L 4.409 11.478 L 4.409 11.478 C 4.092 10.687 4.211 9.787 4.723 9.105 C 4.723 9.105 4.723 9.105 4.723 9.105 L 5.64 7.883 C 5.721 7.774 5.765 7.643 5.765 7.508 L 5.765 5.235 C 5.765 4.451 6.401 3.815 7.185 3.815 L 20.138 3.815 C 20.922 3.815 21.558 4.451 21.558 5.235 L 21.558 18.704 C 21.558 19.426 21.332 20.13 20.912 20.718 L 15.595 28.162 C 14.014 27.477 13.175 25.733 13.629 24.07 L 14.816 19.716 C 14.867 19.528 14.828 19.327 14.71 19.172 C 14.591 19.017 14.408 18.926 14.213 18.926 L 5.769 18.926 C 5.337 18.926 4.929 18.73 4.66 18.393 L 4.66 18.393 L 3.936 17.489 L 3.449 17.878 L 3.936 17.489 C 3.565 17.025 3.522 16.38 3.827 15.871 L 3.827 15.871 L 5.071 13.798 Z M 28.375 16.145 C 28.375 16.93 27.739 17.565 26.955 17.565 L 24.853 17.565 L 24.853 3.818 L 26.955 3.818 C 27.739 3.818 28.375 4.453 28.375 5.238 L 28.375 16.145 Z" android:strokeColor="#ffffffff" android:strokeWidth="1.25" />
55
</vector>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<vector android:name="vector" android:height="32.0dip" android:width="32.0dip" android:viewportWidth="32.0" android:viewportHeight="32.0"
33
xmlns:android="http://schemas.android.com/apk/res/android">
4-
<path android:name="path" android:pathData="M 25.718 11.998 C 26.326 11.998 26.901 12.274 27.28 12.748 L 27.988 13.633 C 28.51 14.286 28.571 15.194 28.141 15.911 L 26.925 17.938 L 27.616 19.665 C 28.005 20.637 27.858 21.742 27.23 22.58 L 26.333 23.776 L 26.333 25.998 C 26.333 27.102 25.438 27.998 24.333 27.998 L 11.667 27.998 C 10.562 27.998 9.667 27.102 9.667 25.998 L 9.667 12.827 C 9.667 11.993 9.927 11.18 10.412 10.502 L 15.663 3.149 C 15.8 2.958 16.051 2.888 16.267 2.98 L 16.338 3.011 C 18.172 3.797 19.147 5.815 18.622 7.74 L 17.46 11.998 L 25.718 11.998 Z M 5 13.329 C 3.895 13.329 3 14.224 3 15.329 L 3 25.995 C 3 27.1 3.895 27.995 5 27.995 L 7.667 27.995 L 7.667 13.329 L 5 13.329 Z" android:strokeColor="#ffffffff" android:strokeWidth="1.25" />
4+
<path android:name="path" android:pathData="M 27.34 13.61 L 27.34 13.61 L 28.064 14.515 L 28.064 14.515 C 28.435 14.978 28.478 15.624 28.173 16.133 L 26.929 18.205 C 26.828 18.373 26.812 18.578 26.885 18.759 L 27.591 20.525 C 27.908 21.317 27.789 22.216 27.277 22.898 L 26.36 24.121 C 26.279 24.229 26.235 24.361 26.235 24.496 L 26.235 26.768 C 26.235 27.553 25.599 28.188 24.815 28.188 L 11.862 28.188 C 11.078 28.188 10.442 27.553 10.442 26.768 L 10.442 13.3 C 10.442 12.578 10.668 11.873 11.088 11.286 L 16.405 3.842 C 17.986 4.526 18.825 6.27 18.371 7.934 L 18.371 7.934 L 17.184 12.288 C 17.133 12.476 17.172 12.677 17.29 12.832 C 17.409 12.986 17.592 13.077 17.787 13.077 L 26.231 13.077 C 26.663 13.077 27.071 13.273 27.34 13.61 Z M 16.32 3.806 L 16.32 3.806 L 16.32 3.806 Z M 3.625 15.858 C 3.625 15.074 4.261 14.438 5.045 14.438 L 7.147 14.438 L 7.147 28.186 L 5.045 28.186 C 4.261 28.186 3.625 27.55 3.625 26.766 L 3.625 15.858 Z" android:strokeColor="#ffffffff" android:strokeWidth="1.25" />
55
</vector>

0 commit comments

Comments
 (0)