fix: wrap theme option

This commit is contained in:
Sculas 2022-09-08 13:45:28 +02:00
parent 8a76cafd37
commit 62c90f916b

View File

@ -35,7 +35,8 @@ class ThemePatch : ResourcePatch() {
}
companion object : OptionsContainer() {
var theme: String by PatchOption.StringListOption(
var theme: String by option(
PatchOption.StringListOption(
key = "theme",
default = null,
options = Themes.names,
@ -43,6 +44,7 @@ class ThemePatch : ResourcePatch() {
description = "Select a theme.",
required = true
)
)
}
enum class Themes(val apply: (String) -> String?) {