fix(YouTube/Overlay buttons): add support for all resolutions
@ -121,28 +121,41 @@ object OverlayButtonsPatch : ResourcePatch() {
|
|||||||
"yt_outline_arrow_repeat_1_white_24.png",
|
"yt_outline_arrow_repeat_1_white_24.png",
|
||||||
"yt_outline_arrow_shuffle_1_white_24.png",
|
"yt_outline_arrow_shuffle_1_white_24.png",
|
||||||
"yt_outline_screen_full_exit_white_24.png",
|
"yt_outline_screen_full_exit_white_24.png",
|
||||||
"yt_outline_screen_full_white_24.png",
|
"yt_outline_screen_full_white_24.png"
|
||||||
|
|
||||||
// Shorts outline icons
|
|
||||||
"ic_right_like_off_shadowed.webp",
|
|
||||||
"ic_right_dislike_off_shadowed.webp",
|
|
||||||
"ic_right_comment_shadowed.webp",
|
|
||||||
"ic_right_share_shadowed.webp",
|
|
||||||
"ic_remix_filled_white_24.webp",
|
|
||||||
"ic_remix_filled_white_shadowed.webp"
|
|
||||||
),
|
),
|
||||||
|
|
||||||
// Shorts outline icons for older versions of YouTube
|
// Shorts outline icons for older versions of YouTube
|
||||||
ResourceUtils.ResourceGroup(
|
ResourceUtils.ResourceGroup(
|
||||||
"drawable",
|
"drawable",
|
||||||
"ic_right_like_off_32c.xml",
|
|
||||||
"ic_right_dislike_off_32c.xml",
|
|
||||||
"ic_right_comment_32c.xml",
|
"ic_right_comment_32c.xml",
|
||||||
|
"ic_right_dislike_off_32c.xml",
|
||||||
|
"ic_right_like_off_32c.xml",
|
||||||
"ic_right_share_32c.xml"
|
"ic_right_share_32c.xml"
|
||||||
)
|
)
|
||||||
).forEach { resourceGroup ->
|
).forEach { resourceGroup ->
|
||||||
context.copyResources("youtube/overlaybuttons/outline", resourceGroup)
|
context.copyResources("youtube/overlaybuttons/outline", resourceGroup)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Shorts outline icons
|
||||||
|
arrayOf(
|
||||||
|
"xxxhdpi",
|
||||||
|
"xxhdpi",
|
||||||
|
"xhdpi",
|
||||||
|
"hdpi",
|
||||||
|
"mdpi"
|
||||||
|
).forEach { dpi ->
|
||||||
|
context.copyResources(
|
||||||
|
"youtube/overlaybuttons/outline",
|
||||||
|
ResourceUtils.ResourceGroup(
|
||||||
|
"drawable-$dpi",
|
||||||
|
"ic_remix_filled_white_24.webp",
|
||||||
|
"ic_remix_filled_white_shadowed.webp",
|
||||||
|
"ic_right_comment_shadowed.webp",
|
||||||
|
"ic_right_dislike_off_shadowed.webp",
|
||||||
|
"ic_right_like_off_shadowed.webp",
|
||||||
|
"ic_right_share_shadowed.webp"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
arrayOf(
|
arrayOf(
|
||||||
ResourceUtils.ResourceGroup(
|
ResourceUtils.ResourceGroup(
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 784 B |
After Width: | Height: | Size: 928 B |
After Width: | Height: | Size: 924 B |
After Width: | Height: | Size: 870 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 3.5 KiB |