mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
fix(YouTube/Overlay buttons): add support for all resolutions
This commit is contained in:
@ -121,28 +121,41 @@ object OverlayButtonsPatch : ResourcePatch() {
|
||||
"yt_outline_arrow_repeat_1_white_24.png",
|
||||
"yt_outline_arrow_shuffle_1_white_24.png",
|
||||
"yt_outline_screen_full_exit_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"
|
||||
"yt_outline_screen_full_white_24.png"
|
||||
),
|
||||
|
||||
// Shorts outline icons for older versions of YouTube
|
||||
ResourceUtils.ResourceGroup(
|
||||
"drawable",
|
||||
"ic_right_like_off_32c.xml",
|
||||
"ic_right_dislike_off_32c.xml",
|
||||
"ic_right_comment_32c.xml",
|
||||
"ic_right_dislike_off_32c.xml",
|
||||
"ic_right_like_off_32c.xml",
|
||||
"ic_right_share_32c.xml"
|
||||
)
|
||||
).forEach { 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 {
|
||||
arrayOf(
|
||||
ResourceUtils.ResourceGroup(
|
||||
|
Reference in New Issue
Block a user