feat(YouTube/Custom Shorts action buttons): add patch option Cairo

This commit is contained in:
inotia00
2024-09-30 21:42:52 +09:00
parent 8333bf73d5
commit e601cca4e0
55 changed files with 2284 additions and 2 deletions

View File

@ -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 ",
@ -80,6 +81,11 @@ object ShortsActionButtonsPatch : BaseResourcePatch(
)
}
if (iconType == DEFAULT_ICON) {
SettingsPatch.updatePatchStatus(this)
return
}
context.copyResources(
"youtube/shorts/actionbuttons/shared",
ResourceGroup(