theme: update markbull

1. Add icon in "session" segment
2. Add "os" segment
3. Exchange "executiontime" and "exit" position
4. Always enable "executiontime" segment
5. Add icon in "executiontime" segment
This commit is contained in:
markbull 2022-01-25 11:21:48 +08:00 committed by Jan De Dobbeleer
parent 38f9885387
commit 9a187c28b7

View file

@ -23,7 +23,20 @@
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#1d1626",
"background": "#ffce7b"
"background": "#ffce7b",
"properties": {
"prefix": " \uF26C "
}
},
{
"type": "os",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#fffef9",
"background": "#C678DD",
"properties": {
"windows": "\uF17A"
}
},
{
"type": "path",
@ -33,6 +46,7 @@
"background": "#C678DD",
"properties": {
"style": "full",
"prefix": "",
"enable_hyperlink": false
}
},
@ -66,23 +80,27 @@
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} <#ed1941>\uF044 {{.Working.String}}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#225a1f>\uF046 {{.Staging.String}}</>{{ end }}{{ if gt .StashCount 0 }} \uF692 {{.StashCount}}{{ end }}{{ if gt .WorktreeCount 0 }}{{if .IsWorkTree}}<#1d953f>{{ end }} \uF1BB {{if .IsWorkTree}}</>{{ end }}{{.WorktreeCount}}{{ end }}"
}
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#fffef9",
"background": "#33a3dc",
"properties": {
"prefix": " \uF064 ",
"always_enabled": true
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"foreground": "#fffef9",
"background": "#ed1941",
"properties": {
"prefix": " \uF12A >>",
"template": "{{ .Text }}"
}
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6f6d85"
}
]
},