Skip to content

Commit

Permalink
feat(YouTube/Custom Shorts action buttons): add patch option Cairo
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Sep 30, 2024
1 parent 8333bf7 commit e601cca
Show file tree
Hide file tree
Showing 55 changed files with 2,284 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ object ShortsActionButtonsPatch : BaseResourcePatch(
dependencies = setOf(SettingsPatch::class),
compatiblePackages = COMPATIBLE_PACKAGE
) {
private const val DEFAULT_ICON = "youtubeoutline"
private const val DEFAULT_ICON = "cairo"
private const val YOUTUBE_ICON = "youtube"

private val IconType = stringPatchOption(
key = "IconType",
default = DEFAULT_ICON,
values = mapOf(
"Cairo" to DEFAULT_ICON,
"Outline" to "outline",
"OutlineCircle" to "outlinecircle",
"Round" to "round",
"YoutubeOutline" to DEFAULT_ICON,
"YoutubeOutline" to "youtubeoutline",
"YouTube" to YOUTUBE_ICON
),
title = "Shorts icon style ",
Expand Down Expand Up @@ -80,6 +81,11 @@ object ShortsActionButtonsPatch : BaseResourcePatch(
)
}

if (iconType == DEFAULT_ICON) {
SettingsPatch.updatePatchStatus(this)
return
}

context.copyResources(
"youtube/shorts/actionbuttons/shared",
ResourceGroup(
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit e601cca

Please sign in to comment.