feat(YouTube/Overlay buttons): change patch options https://github.com/inotia00/ReVanced_Extended/issues/2359

This commit is contained in:
inotia00 2024-09-05 20:08:07 +09:00
parent faa112eed4
commit 5823acc339

View File

@ -36,8 +36,9 @@ object OverlayButtonsPatch : BaseResourcePatch(
), ),
compatiblePackages = COMPATIBLE_PACKAGE compatiblePackages = COMPATIBLE_PACKAGE
) { ) {
private const val DEFAULT_MARGIN = "0.0dip" private const val MARGIN_NONE = "0.0dip"
private const val WIDER_MARGIN = "6.0dip" private const val MARGIN_DEFAULT = "2.5dip"
private const val MARGIN_WIDER = "5.0dip"
private const val DEFAULT_ICON = "bold" private const val DEFAULT_ICON = "bold"
@ -58,10 +59,11 @@ object OverlayButtonsPatch : BaseResourcePatch(
// Option to set bottom margin // Option to set bottom margin
private val BottomMargin = stringPatchOption( private val BottomMargin = stringPatchOption(
key = "BottomMargin", key = "BottomMargin",
default = DEFAULT_MARGIN, default = MARGIN_DEFAULT,
values = mapOf( values = mapOf(
"Wider" to WIDER_MARGIN, "Default" to MARGIN_DEFAULT,
"Default" to DEFAULT_MARGIN "None" to MARGIN_NONE,
"Wider" to MARGIN_WIDER,
), ),
title = "Bottom margin", title = "Bottom margin",
description = "The bottom margin for the overlay buttons and timestamp.", description = "The bottom margin for the overlay buttons and timestamp.",