mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-22 19:09:12 +02:00
feat(YouTube/Custom Shorts action buttons): add YouTube
(unchanged) to selectable patch options
This commit is contained in:
parent
dd32080418
commit
32ceb7fd8a
@ -17,6 +17,7 @@ object ShortsActionButtonsPatch : BaseResourcePatch(
|
||||
compatiblePackages = COMPATIBLE_PACKAGE
|
||||
) {
|
||||
private const val DEFAULT_ICON = "round"
|
||||
private const val YOUTUBE_ICON = "youtube"
|
||||
|
||||
private val IconType = stringPatchOption(
|
||||
key = "IconType",
|
||||
@ -24,7 +25,8 @@ object ShortsActionButtonsPatch : BaseResourcePatch(
|
||||
values = mapOf(
|
||||
"Outline" to "outline",
|
||||
"OutlineCircle" to "outlinecircle",
|
||||
"Round" to DEFAULT_ICON
|
||||
"Round" to DEFAULT_ICON,
|
||||
"YouTube" to YOUTUBE_ICON
|
||||
),
|
||||
title = "Shorts icon style ",
|
||||
description = "The style of the icons for the action buttons in the Shorts player.",
|
||||
@ -37,6 +39,12 @@ object ShortsActionButtonsPatch : BaseResourcePatch(
|
||||
val iconType = IconType
|
||||
.lowerCaseOrThrow()
|
||||
|
||||
if (iconType == YOUTUBE_ICON) {
|
||||
println("INFO: Shorts action buttons will remain unchanged as it matches the original.")
|
||||
SettingsPatch.updatePatchStatus(this)
|
||||
return
|
||||
}
|
||||
|
||||
arrayOf(
|
||||
"xxxhdpi",
|
||||
"xxhdpi",
|
||||
|
Loading…
x
Reference in New Issue
Block a user