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",
"palette": {
"white": "#FFFFFF",
"tan": "#CC3802",
"teal": "#047E84",
"plum": "#9A348E",
"blush": "#DA627D",
"salmon": "#FCA17D",
"sky": "#86BBD8",
"teal_blue": "#33658A"
},
"blocks": [
{
"alignment": "left",
@ -8,15 +18,15 @@
"type": "text",
"style": "diamond",
"leading_diamond": "\ue0b6",
"foreground": "#ffffff",
"background": "#cc3802",
"foreground": "p:white",
"background": "p:tan",
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}"
},
{
"type": "text",
"style": "powerline",
"foreground": "#ffffff",
"background": "#047e84",
"foreground": "p:white",
"background": "p:teal",
"powerline_symbol": "\ue0b0",
"template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}"
},
@ -24,8 +34,8 @@
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b4",
"foreground": "#ffffff",
"background": "#047e84",
"foreground": "p:white",
"background": "p:teal",
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}"
}
],
@ -35,16 +45,16 @@
"alignment": "left",
"segments": [
{
"background": "#9A348E",
"foreground": "#ffffff",
"background": "p:plum",
"foreground": "p:white",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": "{{ .UserName }} ",
"type": "session"
},
{
"background": "#DA627D",
"foreground": "#ffffff",
"background": "p:blush",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder"
@ -54,8 +64,8 @@
"type": "path"
},
{
"background": "#FCA17D",
"foreground": "#ffffff",
"background": "p:salmon",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "",
@ -68,16 +78,16 @@
"type": "git"
},
{
"background": "#86BBD8",
"foreground": "#ffffff",
"background": "p:sky",
"foreground": "p:white",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"background": "#33658A",
"foreground": "#ffffff",
"background": "p:teal_blue",
"foreground": "p:white",
"properties": {
"time_format": "15:04"
},