Skip to content

Commit

Permalink
fix(YT Music - Custom branding icon): Fix some icons and add Welcome …
Browse files Browse the repository at this point in the history
…screen logo
  • Loading branch information
anddea committed Mar 25, 2024
1 parent 62bb60b commit 9abf946
Show file tree
Hide file tree
Showing 76 changed files with 72 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,59 +127,78 @@ object CustomBrandingIconPatch : ResourcePatch() {

// change resource icons.
if (SplashHeaderIcon == true) {
arrayOf(
ResourceGroup(
"drawable-hdpi",
"action_bar_logo_release.png",
"action_bar_logo.png",
"record.png",
),

ResourceGroup(
"drawable-large-hdpi",
"record.png",
),

ResourceGroup(
"drawable-large-mdpi",
"record.png",
),

ResourceGroup(
"drawable-large-xhdpi",
"record.png",
),

ResourceGroup(
"drawable-xlarge-mdpi",
"record.png",
),

ResourceGroup(
"drawable-mdpi",
"action_bar_logo.png",
"record.png",
),

ResourceGroup(
"drawable-xhdpi",
"action_bar_logo.png",
"record.png",
),

ResourceGroup(
"drawable-xxhdpi",
"action_bar_logo.png",
"record.png",
),


ResourceGroup(
"drawable-xxxhdpi",
"action_bar_logo.png",
),
).forEach { resourceGroup ->
context.copyResources("$resourcePath/resource", resourceGroup)
try {
arrayOf(
ResourceGroup(
"drawable-hdpi",
"action_bar_logo_release.png",
"action_bar_logo.png",
"logo_music.png", // 6.32 and earlier
"ytm_logo.png", // 6.33 and later
"record.png",
),

ResourceGroup(
"drawable-large-hdpi",
"record.png",
),

ResourceGroup(
"drawable-large-mdpi",
"record.png",
),

ResourceGroup(
"drawable-large-xhdpi",
"record.png",
),

ResourceGroup(
"drawable-xlarge-hdpi",
"record.png",
),

ResourceGroup(
"drawable-xlarge-mdpi",
"record.png",
),

ResourceGroup(
"drawable-mdpi",
"action_bar_logo.png",
"logo_music.png", // 6.32 and earlier
"ytm_logo.png", // 6.33 and later
"record.png",
),

ResourceGroup(
"drawable-xhdpi",
"action_bar_logo.png",
"logo_music.png", // 6.32 and earlier
"ytm_logo.png", // 6.33 and later
"record.png",
),

ResourceGroup(
"drawable-xxhdpi",
"action_bar_logo.png",
"logo_music.png", // 6.32 and earlier
"ytm_logo.png", // 6.33 and later
"record.png",
),


ResourceGroup(
"drawable-xxxhdpi",
"action_bar_logo.png",
"logo_music.png", // 6.32 and earlier
"ytm_logo.png", // 6.33 and later
),
).forEach { resourceGroup ->
context.copyResources("$resourcePath/resource", resourceGroup)
}
} catch (e: Exception) {
// Do nothing
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 9abf946

Please sign in to comment.