refactor(m365princess): extract colors to palette

This commit is contained in:
Mark Lansky 2023-09-12 18:46:59 +00:00 committed by GitHub
parent f59af1bab9
commit 4e1da73d8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,15 @@
{ {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"white": "#FFFFFF",
"tan": "#CC3802",
"teal": "#047E84",
"plum": "#9A348E",
"blush": "#DA627D",
"salmon": "#FCA17D",
"sky": "#86BBD8",
"teal_blue": "#33658A"
},
"blocks": [ "blocks": [
{ {
"alignment": "left", "alignment": "left",
@ -8,15 +18,15 @@
"type": "text", "type": "text",
"style": "diamond", "style": "diamond",
"leading_diamond": "\ue0b6", "leading_diamond": "\ue0b6",
"foreground": "#ffffff", "foreground": "p:white",
"background": "#cc3802", "background": "p:tan",
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}" "template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}"
}, },
{ {
"type": "text", "type": "text",
"style": "powerline", "style": "powerline",
"foreground": "#ffffff", "foreground": "p:white",
"background": "#047e84", "background": "p:teal",
"powerline_symbol": "\ue0b0", "powerline_symbol": "\ue0b0",
"template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}" "template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}"
}, },
@ -24,8 +34,8 @@
"type": "text", "type": "text",
"style": "diamond", "style": "diamond",
"trailing_diamond": "\ue0b4", "trailing_diamond": "\ue0b4",
"foreground": "#ffffff", "foreground": "p:white",
"background": "#047e84", "background": "p:teal",
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}" "template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}"
} }
], ],
@ -35,16 +45,16 @@
"alignment": "left", "alignment": "left",
"segments": [ "segments": [
{ {
"background": "#9A348E", "background": "p:plum",
"foreground": "#ffffff", "foreground": "p:white",
"leading_diamond": "\ue0b6", "leading_diamond": "\ue0b6",
"style": "diamond", "style": "diamond",
"template": "{{ .UserName }} ", "template": "{{ .UserName }} ",
"type": "session" "type": "session"
}, },
{ {
"background": "#DA627D", "background": "p:blush",
"foreground": "#ffffff", "foreground": "p:white",
"powerline_symbol": "\ue0b0", "powerline_symbol": "\ue0b0",
"properties": { "properties": {
"style": "folder" "style": "folder"
@ -54,8 +64,8 @@
"type": "path" "type": "path"
}, },
{ {
"background": "#FCA17D", "background": "p:salmon",
"foreground": "#ffffff", "foreground": "p:white",
"powerline_symbol": "\ue0b0", "powerline_symbol": "\ue0b0",
"properties": { "properties": {
"branch_icon": "", "branch_icon": "",
@ -68,16 +78,16 @@
"type": "git" "type": "git"
}, },
{ {
"background": "#86BBD8", "background": "p:sky",
"foreground": "#ffffff", "foreground": "p:white",
"powerline_symbol": "\ue0b0", "powerline_symbol": "\ue0b0",
"style": "powerline", "style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node" "type": "node"
}, },
{ {
"background": "#33658A", "background": "p:teal_blue",
"foreground": "#ffffff", "foreground": "p:white",
"properties": { "properties": {
"time_format": "15:04" "time_format": "15:04"
}, },