Skip to content

Commit 9abf946

Browse files
committed
fix(YT Music - Custom branding icon): Fix some icons and add Welcome screen logo
1 parent 62bb60b commit 9abf946

File tree

76 files changed

+72
-53
lines changed

Some content is hidden

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

76 files changed

+72
-53
lines changed

src/main/kotlin/app/revanced/patches/music/layout/branding/icon/CustomBrandingIconPatch.kt

+72-53
Original file line numberDiff line numberDiff line change
@@ -127,59 +127,78 @@ object CustomBrandingIconPatch : ResourcePatch() {
127127

128128
// change resource icons.
129129
if (SplashHeaderIcon == true) {
130-
arrayOf(
131-
ResourceGroup(
132-
"drawable-hdpi",
133-
"action_bar_logo_release.png",
134-
"action_bar_logo.png",
135-
"record.png",
136-
),
137-
138-
ResourceGroup(
139-
"drawable-large-hdpi",
140-
"record.png",
141-
),
142-
143-
ResourceGroup(
144-
"drawable-large-mdpi",
145-
"record.png",
146-
),
147-
148-
ResourceGroup(
149-
"drawable-large-xhdpi",
150-
"record.png",
151-
),
152-
153-
ResourceGroup(
154-
"drawable-xlarge-mdpi",
155-
"record.png",
156-
),
157-
158-
ResourceGroup(
159-
"drawable-mdpi",
160-
"action_bar_logo.png",
161-
"record.png",
162-
),
163-
164-
ResourceGroup(
165-
"drawable-xhdpi",
166-
"action_bar_logo.png",
167-
"record.png",
168-
),
169-
170-
ResourceGroup(
171-
"drawable-xxhdpi",
172-
"action_bar_logo.png",
173-
"record.png",
174-
),
175-
176-
177-
ResourceGroup(
178-
"drawable-xxxhdpi",
179-
"action_bar_logo.png",
180-
),
181-
).forEach { resourceGroup ->
182-
context.copyResources("$resourcePath/resource", resourceGroup)
130+
try {
131+
arrayOf(
132+
ResourceGroup(
133+
"drawable-hdpi",
134+
"action_bar_logo_release.png",
135+
"action_bar_logo.png",
136+
"logo_music.png", // 6.32 and earlier
137+
"ytm_logo.png", // 6.33 and later
138+
"record.png",
139+
),
140+
141+
ResourceGroup(
142+
"drawable-large-hdpi",
143+
"record.png",
144+
),
145+
146+
ResourceGroup(
147+
"drawable-large-mdpi",
148+
"record.png",
149+
),
150+
151+
ResourceGroup(
152+
"drawable-large-xhdpi",
153+
"record.png",
154+
),
155+
156+
ResourceGroup(
157+
"drawable-xlarge-hdpi",
158+
"record.png",
159+
),
160+
161+
ResourceGroup(
162+
"drawable-xlarge-mdpi",
163+
"record.png",
164+
),
165+
166+
ResourceGroup(
167+
"drawable-mdpi",
168+
"action_bar_logo.png",
169+
"logo_music.png", // 6.32 and earlier
170+
"ytm_logo.png", // 6.33 and later
171+
"record.png",
172+
),
173+
174+
ResourceGroup(
175+
"drawable-xhdpi",
176+
"action_bar_logo.png",
177+
"logo_music.png", // 6.32 and earlier
178+
"ytm_logo.png", // 6.33 and later
179+
"record.png",
180+
),
181+
182+
ResourceGroup(
183+
"drawable-xxhdpi",
184+
"action_bar_logo.png",
185+
"logo_music.png", // 6.32 and earlier
186+
"ytm_logo.png", // 6.33 and later
187+
"record.png",
188+
),
189+
190+
191+
ResourceGroup(
192+
"drawable-xxxhdpi",
193+
"action_bar_logo.png",
194+
"logo_music.png", // 6.32 and earlier
195+
"ytm_logo.png", // 6.33 and later
196+
),
197+
).forEach { resourceGroup ->
198+
context.copyResources("$resourcePath/resource", resourceGroup)
199+
}
200+
} catch (e: Exception) {
201+
// Do nothing
183202
}
184203
}
185204
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)