From 71c801d312f599faa4d61823d4d9d1c077d1899d Mon Sep 17 00:00:00 2001 From: Jack Tracey <41163455+jtracey93@users.noreply.github.com> Date: Mon, 22 Apr 2024 07:26:57 +0100 Subject: [PATCH] theme(jtracey93): adjust status and executiontime --- themes/jtracey93.omp.json | 46 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/themes/jtracey93.omp.json b/themes/jtracey93.omp.json index b7bbc21d..da6c9249 100644 --- a/themes/jtracey93.omp.json +++ b/themes/jtracey93.omp.json @@ -54,13 +54,55 @@ "properties": { "time_format": "15:04:05" }, - "style": "diamond", + "style": "plain", "template": " {{ .CurrentDate | date .Format }} ", - "trailing_diamond": "\ue0b0", "type": "time" + }, + { + "background": "#49404f", + "foreground": "#ffffff", + "properties": { + "style": "dallas", + "threshold": 0 + }, + "style": "plain", + "template": " {{ .FormattedMs }}s ", + "type": "executiontime" + }, + { + "type": "status", + "style": "diamond", + "foreground": "#ffffff", + "background": "#00897b", + "background_templates": [ + "{{ if .Error }}#e91e63{{ end }}" + ], + "trailing_diamond": "\ue0b0", + "properties": { + "always_enabled": true + } } ], "type": "prompt" + }, + { + "type": "prompt", + "newline": true, + "alignment": "left", + "segments": [ + { + "foreground": "#ffffff", + "foreground_templates": [ + "{{ if gt .Code 0 }}#ff0000{{ end }}" + ], + "properties": { + "always_enabled": true + }, + "style": "plain", + "template": "\u276f ", + "type": "status" + } + ] } ], "final_space": true,