mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
chore: add color templates to schema
This commit is contained in:
parent
0d87942fe3
commit
4750d19d86
|
@ -11,6 +11,15 @@
|
|||
"title": "Color string",
|
||||
"description": "https://ohmyposh.dev/docs/configure#colors"
|
||||
},
|
||||
"color_templates": {
|
||||
"type": "array",
|
||||
"title": "Templates to define a color",
|
||||
"description": "https://ohmyposh.dev/docs/configure#foreground-templates",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"display_version": {
|
||||
"type": "boolean",
|
||||
"title": "Display Version",
|
||||
|
@ -113,7 +122,7 @@
|
|||
"title": "A segment",
|
||||
"description": "https://ohmyposh.dev/docs/configure#segment",
|
||||
"default": {},
|
||||
"required": ["type", "style", "foreground"],
|
||||
"required": ["type", "style"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
|
@ -154,7 +163,9 @@
|
|||
"enum": ["powerline", "plain", "diamond"]
|
||||
},
|
||||
"foreground": { "$ref": "#/definitions/color" },
|
||||
"foreground_templates": { "$ref": "#/definitions/color_templates" },
|
||||
"background": { "$ref": "#/definitions/color" },
|
||||
"background_templates": { "$ref": "#/definitions/color_templates" },
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"title": "Segment Properties, used to change behavior/displaying",
|
||||
|
|
Loading…
Reference in a new issue