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