Skip to content

Commit 62f3785

Browse files
anddeaodkate
andcommitted
feat(YouTube - Shorts overlay buttons): Update icons
Co-Authored-By: odkate <[email protected]>
1 parent d8b1da2 commit 62f3785

File tree

91 files changed

+37
-42
lines changed

Some content is hidden

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

91 files changed

+37
-42
lines changed

β€Žsrc/main/kotlin/app/revanced/patches/youtube/shorts/shortsoverlay/ShortsOverlayButtonsPatch.kt

+37-42
Original file line numberDiff line numberDiff line change
@@ -76,51 +76,46 @@ object ShortsOverlayButtonsPatch : ResourcePatch() {
7676
IconType?.let { iconType ->
7777
val selectedIconType = iconType.lowercase()
7878

79-
val commonResources = arrayOf(
80-
ResourceGroup(
81-
"drawable-xxhdpi",
82-
"ic_remix_filled_white_24.webp", // for older versions only
83-
"ic_remix_filled_white_shadowed.webp",
84-
"ic_right_comment_shadowed.webp",
85-
"ic_right_dislike_off_shadowed.webp",
86-
"ic_right_dislike_on_shadowed.webp",
87-
"ic_right_like_off_shadowed.webp",
88-
"ic_right_like_on_shadowed.webp",
89-
"ic_right_share_shadowed.webp"
79+
arrayOf(
80+
"xxxhdpi",
81+
"xxhdpi",
82+
"xhdpi",
83+
"hdpi",
84+
"mdpi"
85+
).forEach { dpi ->
86+
context.copyResources(
87+
"youtube/shorts/$selectedIconType",
88+
ResourceGroup(
89+
"drawable-$dpi",
90+
"ic_remix_filled_white_24.webp", // for older versions only
91+
"ic_remix_filled_white_shadowed.webp",
92+
"ic_right_comment_shadowed.webp",
93+
"ic_right_dislike_off_shadowed.webp",
94+
"ic_right_dislike_on_shadowed.webp",
95+
"ic_right_like_off_shadowed.webp",
96+
"ic_right_like_on_shadowed.webp",
97+
"ic_right_share_shadowed.webp"
98+
)
9099
)
91-
)
92100

93-
if (selectedIconType == "outline" || selectedIconType == "outlinecircle") {
94-
arrayOf(
95-
"xxxhdpi",
96-
"xxhdpi",
97-
"xhdpi",
98-
"hdpi",
99-
"mdpi"
100-
).forEach { dpi ->
101-
context.copyResources(
102-
"youtube/shorts/outline",
103-
ResourceGroup(
104-
"drawable-$dpi",
105-
"ic_right_dislike_on_32c.webp",
106-
"ic_right_like_on_32c.webp"
107-
),
108-
ResourceGroup(
109-
"drawable",
110-
"ic_right_comment_32c.xml",
111-
"ic_right_dislike_off_32c.xml",
112-
"ic_right_like_off_32c.xml",
113-
"ic_right_share_32c.xml",
114-
"reel_camera_bold_24dp.xml",
115-
"reel_more_vertical_bold_24dp.xml",
116-
"reel_search_bold_24dp.xml"
117-
)
101+
context.copyResources(
102+
"youtube/shorts/outline",
103+
ResourceGroup(
104+
"drawable-$dpi",
105+
"ic_right_dislike_on_32c.webp",
106+
"ic_right_like_on_32c.webp"
107+
),
108+
ResourceGroup(
109+
"drawable",
110+
"ic_right_comment_32c.xml",
111+
"ic_right_dislike_off_32c.xml",
112+
"ic_right_like_off_32c.xml",
113+
"ic_right_share_32c.xml",
114+
"reel_camera_bold_24dp.xml",
115+
"reel_more_vertical_bold_24dp.xml",
116+
"reel_search_bold_24dp.xml"
118117
)
119-
}
120-
}
121-
122-
commonResources.forEach { resourceGroup ->
123-
context.copyResources("youtube/shorts/$selectedIconType", resourceGroup)
118+
)
124119
}
125120
} ?: throw PatchException("Invalid icon type path.")
126121

Binary file not shown.

0 commit comments

Comments
Β (0)