mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
feat(YouTube/Custom Shorts action buttons): add patch option Cairo
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user