Skip to content

Commit

Permalink
fix(YouTube - Custom branding): Set default values for patch options
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 25, 2023
1 parent 5b83a9d commit 2ba31f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import java.nio.file.Files
@Suppress("unused")
object CustomBrandingPatch : ResourcePatch() {
private const val REVANCED_ICON = "ReVanced*Logo" // Can never be a valid path.
private const val APP_NAME = "YouTube ReVanced"

private val iconResourceFileNames = arrayOf(
"adaptiveproduct_youtube_background_color_108",
Expand All @@ -39,8 +40,9 @@ object CustomBrandingPatch : ResourcePatch() {

private var appName by stringPatchOption(
key = "appName",
default = APP_NAME,
values = mapOf(
"YouTube ReVanced" to "YouTube ReVanced",
"YouTube ReVanced" to APP_NAME,
"YT" to "YT",
"YouTube" to "YouTube",
),
Expand All @@ -50,6 +52,7 @@ object CustomBrandingPatch : ResourcePatch() {

private var icon by stringPatchOption(
key = "iconPath",
default = REVANCED_ICON,
values = mapOf("ReVanced Logo" to REVANCED_ICON),
title = "App icon",
description = """
Expand Down

0 comments on commit 2ba31f1

Please sign in to comment.