From 4e1da73d8b9712407d34a82ec0a95240edf9ffa4 Mon Sep 17 00:00:00 2001 From: Mark Lansky <49815452+ZerdoX-x@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:46:59 +0000 Subject: [PATCH] refactor(m365princess): extract colors to palette --- themes/M365Princess.omp.json | 42 ++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/themes/M365Princess.omp.json b/themes/M365Princess.omp.json index 4d1368e4..12bb380c 100644 --- a/themes/M365Princess.omp.json +++ b/themes/M365Princess.omp.json @@ -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" },