mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-08 12:25:53 +01:00
fix: wrap theme option
This commit is contained in:
parent
a2f104c24a
commit
150c173adc
@ -35,7 +35,8 @@ class ThemePatch : ResourcePatch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
companion object : OptionsContainer() {
|
companion object : OptionsContainer() {
|
||||||
var theme: String by PatchOption.StringListOption(
|
var theme: String by option(
|
||||||
|
PatchOption.StringListOption(
|
||||||
key = "theme",
|
key = "theme",
|
||||||
default = null,
|
default = null,
|
||||||
options = Themes.names,
|
options = Themes.names,
|
||||||
@ -43,6 +44,7 @@ class ThemePatch : ResourcePatch() {
|
|||||||
description = "Select a theme.",
|
description = "Select a theme.",
|
||||||
required = true
|
required = true
|
||||||
)
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class Themes(val apply: (String) -> String?) {
|
enum class Themes(val apply: (String) -> String?) {
|
||||||
|
Loading…
Reference in New Issue
Block a user