theme: update night-owl

- Added custom title bar
- Changed home & folder icon
- Changed background_template colors in git segment
- Added fetch_stash_count & fetch_worktree_count
- Changed template properties in git segment
- Added shell segment
- Changed style of the right prompt
- Added transient_prompt
This commit is contained in:
Jul Guga 2021-11-21 14:43:05 +01:00 committed by Jan De Dobbeleer
parent accf46420f
commit 0247b329c1

View file

@ -2,6 +2,9 @@
"$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",
"final_space": false, "final_space": false,
"osc99": true, "osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{ .Folder }}",
"blocks": [ "blocks": [
{ {
"type": "prompt", "type": "prompt",
@ -39,8 +42,8 @@
"background": "#82AAFF", "background": "#82AAFF",
"properties": { "properties": {
"folder_separator_icon": " <#011627>\uE0B1</> ", "folder_separator_icon": " <#011627>\uE0B1</> ",
"home_icon": "\uf46d ", "home_icon": "\uf7db ",
"folder_icon": "\uf115 ", "folder_icon": "\uf07c ",
"style": "agnoster", "style": "agnoster",
"enable_hyperlink": true "enable_hyperlink": true
} }
@ -52,23 +55,25 @@
"foreground": "#011627", "foreground": "#011627",
"background": "#22da6e", "background": "#22da6e",
"background_templates": [ "background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}", "{{ if or (.Working.Changed) (.Staging.Changed) }}#addb67{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f78c6c{{ end }}",
"{{ if gt .Ahead 0 }}#C792EA{{ end }}", "{{ if gt .Ahead 0 }}#21c7a8{{ end }}",
"{{ if gt .Behind 0 }}#C792EA{{ end }}" "{{ if gt .Behind 0 }}#c792ea{{ end }}"
], ],
"properties": { "properties": {
"branch_icon": "\ue725 ", "branch_icon": "\ue725 ",
"fetch_status": true, "fetch_status": true,
"fetch_stash_count": true,
"fetch_worktree_count": true,
"fetch_upstream_icon": true, "fetch_upstream_icon": true,
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uF046 {{ .Staging.String }}</>{{ end }}" "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }}"
} }
}, },
{ {
"type": "executiontime", "type": "executiontime",
"style": "diamond", "style": "diamond",
"leading_diamond": "<transparent,#575656>\uE0B0</>", "leading_diamond": "<transparent,#575656>\uE0B0</>",
"trailing_diamond": "\uE0B0", "trailing_diamond": "\uE0B4",
"foreground": "#d6deeb", "foreground": "#d6deeb",
"background": "#575656", "background": "#575656",
"properties": { "properties": {
@ -83,11 +88,23 @@
"type": "prompt", "type": "prompt",
"alignment": "right", "alignment": "right",
"segments": [ "segments": [
{
"type": "shell",
"style": "diamond",
"leading_diamond": "\uE0B6",
"trailing_diamond": "<transparent,#d6deeb>\uE0B2</>",
"foreground": "#011627",
"background": "#d6deeb",
"properties": {
"prefix": "\uf489 ",
"postfix": ""
}
},
{ {
"type": "node", "type": "node",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#303030>\uE0B2</>",
"foreground": "#3C873A", "foreground": "#3C873A",
"background": "#303030", "background": "#303030",
"properties": { "properties": {
@ -101,8 +118,8 @@
{ {
"type": "python", "type": "python",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#306998>\uE0B2</>",
"foreground": "#FFE873", "foreground": "#FFE873",
"background": "#306998", "background": "#306998",
"properties": { "properties": {
@ -113,8 +130,8 @@
{ {
"type": "java", "type": "java",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#0e8ac8>\uE0B2</>",
"foreground": "#ec2729", "foreground": "#ec2729",
"background": "#0e8ac8", "background": "#0e8ac8",
"properties": { "properties": {
@ -125,8 +142,8 @@
{ {
"type": "dotnet", "type": "dotnet",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#0e0e0e>\uE0B2</>",
"foreground": "#0d6da8", "foreground": "#0d6da8",
"background": "#0e0e0e", "background": "#0e0e0e",
"properties": { "properties": {
@ -137,8 +154,8 @@
{ {
"type": "go", "type": "go",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#06aad5", "foreground": "#06aad5",
"background": "#ffffff", "background": "#ffffff",
"properties": { "properties": {
@ -149,8 +166,8 @@
{ {
"type": "rust", "type": "rust",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#f3f0ec>\uE0B2</>",
"foreground": "#925837", "foreground": "#925837",
"background": "#f3f0ec", "background": "#f3f0ec",
"properties": { "properties": {
@ -161,8 +178,8 @@
{ {
"type": "dart", "type": "dart",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#e1e8e9>\uE0B2</>",
"foreground": "#055b9c", "foreground": "#055b9c",
"background": "#e1e8e9", "background": "#e1e8e9",
"properties": { "properties": {
@ -173,8 +190,8 @@
{ {
"type": "angular", "type": "angular",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#ce092f", "foreground": "#ce092f",
"background": "#ffffff", "background": "#ffffff",
"properties": { "properties": {
@ -185,8 +202,8 @@
{ {
"type": "julia", "type": "julia",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#945bb3>\uE0B2</>",
"foreground": "#359a25", "foreground": "#359a25",
"background": "#945bb3", "background": "#945bb3",
"properties": { "properties": {
@ -197,8 +214,8 @@
{ {
"type": "ruby", "type": "ruby",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#9c1006", "foreground": "#9c1006",
"background": "#ffffff", "background": "#ffffff",
"properties": { "properties": {
@ -209,8 +226,8 @@
{ {
"type": "azfunc", "type": "azfunc",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#ffffff>\uE0B2</>",
"foreground": "#5398c2", "foreground": "#5398c2",
"background": "#ffffff", "background": "#ffffff",
"properties": { "properties": {
@ -221,8 +238,8 @@
{ {
"type": "aws", "type": "aws",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#565656>\uE0B2</>",
"foreground": "#faa029", "foreground": "#faa029",
"background": "#565656", "background": "#565656",
"properties": { "properties": {
@ -234,8 +251,8 @@
{ {
"type": "kubectl", "type": "kubectl",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "<transparent,#316ce4>\uE0B2</>",
"foreground": "#ffffff", "foreground": "#ffffff",
"background": "#316ce4", "background": "#316ce4",
"properties": { "properties": {
@ -247,13 +264,13 @@
{ {
"type": "time", "type": "time",
"style": "diamond", "style": "diamond",
"leading_diamond": " \uE0B6", "leading_diamond": "\uE0B2",
"trailing_diamond": "\uE0B4", "trailing_diamond": "\uE0B4",
"foreground": "#d6deeb", "foreground": "#d6deeb",
"background": "#234d70", "background": "#234d70",
"properties": { "properties": {
"prefix": " \uf64f ", "prefix": "\uf64f ",
"postfix": " ", "postfix": "",
"time_format": "15:04:05" "time_format": "15:04:05"
} }
} }
@ -278,7 +295,7 @@
"type": "spotify", "type": "spotify",
"style": "diamond", "style": "diamond",
"leading_diamond": "\uE0B6", "leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0c6 ", "trailing_diamond": "\uE0c6",
"foreground": "#011627", "foreground": "#011627",
"background": "#1DB954", "background": "#1DB954",
"properties": { "properties": {
@ -293,11 +310,15 @@
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"], "foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
"properties": { "properties": {
"template": "\ue285\ue285", "template": "\ue285\ue285",
"prefix": "",
"always_enabled": true "always_enabled": true
} }
} }
] ]
} }
] ],
"transient_prompt": {
"background": "transparent",
"foreground": "#d6deeb",
"template": "\ue285 "
}
} }