mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 13:39:52 +00:00
feat: custom themes
This commit is contained in:
parent
a42175c067
commit
91ae9b33d3
7 changed files with 384 additions and 108 deletions
|
|
@ -116,6 +116,34 @@ func generateSchema() map[string]any {
|
|||
"onedark",
|
||||
"tokyonight",
|
||||
"tron",
|
||||
"custom",
|
||||
},
|
||||
},
|
||||
"customTheme": map[string]any{
|
||||
"type": "object",
|
||||
"description": "Custom theme color definitions",
|
||||
"additionalProperties": map[string]any{
|
||||
"oneOf": []map[string]any{
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^#[0-9a-fA-F]{6}$",
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": map[string]any{
|
||||
"dark": map[string]any{
|
||||
"type": "string",
|
||||
"pattern": "^#[0-9a-fA-F]{6}$",
|
||||
},
|
||||
"light": map[string]any{
|
||||
"type": "string",
|
||||
"pattern": "^#[0-9a-fA-F]{6}$",
|
||||
},
|
||||
},
|
||||
"required": []string{"dark", "light"},
|
||||
"additionalProperties": false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue