Added theme options
This commit is contained in:
parent
68a6169bc3
commit
ab5c101fcc
5 changed files with 66 additions and 4 deletions
|
|
@ -2,10 +2,28 @@ package models
|
|||
|
||||
import "io/fs"
|
||||
|
||||
type ThemeOptionType int
|
||||
|
||||
const (
|
||||
ThemeOptionTypeString ThemeOptionType = iota
|
||||
ThemeOptionTypeInt
|
||||
)
|
||||
|
||||
type ThemeOption struct {
|
||||
Name string
|
||||
Label string
|
||||
Description string
|
||||
Type ThemeOptionType
|
||||
DefaultValue string
|
||||
}
|
||||
|
||||
type ThemeMeta struct {
|
||||
ID string
|
||||
Name string
|
||||
|
||||
// Options
|
||||
Options []ThemeOption
|
||||
|
||||
// Source repo
|
||||
URL string
|
||||
OverlayFS fs.FS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue