From 62c90f916b5d27e5b11e44eb5fcb9e67a0d0ed22 Mon Sep 17 00:00:00 2001 From: Sculas Date: Thu, 8 Sep 2022 13:45:28 +0200 Subject: [PATCH] fix: wrap theme option --- .../youtube/layout/theme/patch/ThemePatch.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt index 0d1ca8431..127502694 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt @@ -35,13 +35,15 @@ class ThemePatch : ResourcePatch() { } companion object : OptionsContainer() { - var theme: String by PatchOption.StringListOption( - key = "theme", - default = null, - options = Themes.names, - title = "Theme", - description = "Select a theme.", - required = true + var theme: String by option( + PatchOption.StringListOption( + key = "theme", + default = null, + options = Themes.names, + title = "Theme", + description = "Select a theme.", + required = true + ) ) }