Added theme options

This commit is contained in:
Leon Mika 2025-03-30 11:15:46 +11:00
parent 68a6169bc3
commit ab5c101fcc
5 changed files with 66 additions and 4 deletions

View file

@ -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