fix: wrap theme option

This commit is contained in:
Sculas 2022-09-08 13:45:28 +02:00
parent a2f104c24a
commit 150c173adc
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89

View File

@ -35,13 +35,15 @@ class ThemePatch : ResourcePatch() {
} }
companion object : OptionsContainer() { companion object : OptionsContainer() {
var theme: String by PatchOption.StringListOption( var theme: String by option(
key = "theme", PatchOption.StringListOption(
default = null, key = "theme",
options = Themes.names, default = null,
title = "Theme", options = Themes.names,
description = "Select a theme.", title = "Theme",
required = true description = "Select a theme.",
required = true
)
) )
} }