From b6a70af568da0dbc0eff86d091b3679f1586dab0 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 16 Oct 2020 17:12:34 +0200 Subject: [PATCH] refactor: replace theme icons --- docs/docs/configuration.md | 10 +++++----- docs/docs/segment-exit.md | 4 ++-- docs/docs/segment-node.md | 2 +- docs/docs/segment-os.md | 2 +- docs/docs/segment-python.md | 2 +- docs/docs/segment-session.md | 2 +- docs/docs/segment-text.md | 2 +- segment_test.go | 2 +- themes/agnoster.json | 2 +- themes/aliens.json | 4 ++-- themes/avit.json | 2 +- themes/emodipt.json | 3 +-- themes/fish.json | 4 ++-- themes/honukai.json | 6 +++--- themes/jandedobbeleer.json | 12 ++++++------ themes/lambda.json | 2 +- themes/material.json | 4 ++-- themes/paradox.json | 6 +++--- themes/pararussel.json | 6 +++--- themes/powerlevel10k_classic.json | 12 ++++++------ themes/powerlevel10k_lean.json | 2 +- themes/powerline.json | 2 +- themes/robbyrussel.json | 4 ++-- themes/sorin.json | 4 ++-- themes/star.json | 2 +- themes/zash.json | 4 ++-- 26 files changed, 53 insertions(+), 54 deletions(-) diff --git a/docs/docs/configuration.md b/docs/docs/configuration.md index 2336336d..ce126a66 100644 --- a/docs/docs/configuration.md +++ b/docs/docs/configuration.md @@ -22,7 +22,7 @@ A really simple configuration could look like this. "foreground": "#ffffff", "background": "#61AFEF", "properties": { - "prefix": "  ", + "prefix": " \uE5FF ", "style": "folder" } } @@ -236,7 +236,7 @@ override or transparent background color using the segement's [foreground][fg] p "style": "diamond", "foreground": "#ffffff", "background": "#ffb300", - "leading_diamond": "", + "leading_diamond": "\uE0B6", "trailing_diamond": "\uE0B0", "properties": { "postfix": " " @@ -249,7 +249,7 @@ override or transparent background color using the segement's [foreground][fg] p "foreground": "#ffffff", "background": "#61AFEF", "properties": { - "prefix": "  ", + "prefix": " \uE5FF ", "style": "folder", "ignore_folders": [ "/super/secret/project" @@ -278,13 +278,13 @@ override or transparent background color using the segement's [foreground][fg] p "foreground": "#ffffff", "background": "#00897b", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B4", "properties": { "display_exit_code": false, "always_enabled": true, "error_color": "#e91e63", "color_background": true, - "prefix": "<#193549>\uE0B0 " + "prefix": "<#193549>\uE0B0 \uE23A" } } ] diff --git a/docs/docs/segment-exit.md b/docs/docs/segment-exit.md index a25385c7..58f8b6e9 100644 --- a/docs/docs/segment-exit.md +++ b/docs/docs/segment-exit.md @@ -17,13 +17,13 @@ Displays the last exit code or that the last command failed based on the configu "foreground": "#ffffff", "background": "#00897b", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B4", "properties": { "display_exit_code": false, "always_enabled": true, "error_color": "#e91e63", "color_background": true, - "prefix": "<#193549>\uE0B0 " + "prefix": "<#193549>\uE0B0 \uE23A" } } ``` diff --git a/docs/docs/segment-node.md b/docs/docs/segment-node.md index dbbbb4a4..dffb22ed 100644 --- a/docs/docs/segment-node.md +++ b/docs/docs/segment-node.md @@ -18,7 +18,7 @@ Display the currently active node version when a folder contains `.js` or `.ts` "foreground": "#ffffff", "background": "#6CA35E", "properties": { - "prefix": "  " + "prefix": " \uE718 " } } ``` diff --git a/docs/docs/segment-os.md b/docs/docs/segment-os.md index 7ab711b9..a2c628af 100644 --- a/docs/docs/segment-os.md +++ b/docs/docs/segment-os.md @@ -17,7 +17,7 @@ Display OS specific info. Defaults to Icon. "foreground": "#26C6DA", "background": "#546E7A", "properties": { - "postfix": " ", + "postfix": " \uE0B1", "macos": "mac" } } diff --git a/docs/docs/segment-python.md b/docs/docs/segment-python.md index 31dbfed8..27eeb2ae 100644 --- a/docs/docs/segment-python.md +++ b/docs/docs/segment-python.md @@ -19,7 +19,7 @@ Supports conda, virtualenv and pyenv. "foreground": "#100e23", "background": "#906cff", "properties": { - "prefix": "  " + "prefix": " \uE235 " } } ``` diff --git a/docs/docs/segment-session.md b/docs/docs/segment-session.md index 307bd253..d2e57b5e 100644 --- a/docs/docs/segment-session.md +++ b/docs/docs/segment-session.md @@ -16,7 +16,7 @@ Show the current user and host name. "style": "diamond", "foreground": "#ffffff", "background": "#c386f1", - "leading_diamond": "", + "leading_diamond": "\uE0B6", "trailing_diamond": "\uE0B0" } ``` diff --git a/docs/docs/segment-text.md b/docs/docs/segment-text.md index 4a4e3504..ed411bcc 100644 --- a/docs/docs/segment-text.md +++ b/docs/docs/segment-text.md @@ -17,7 +17,7 @@ Display text. "foreground": "#E06C75", "properties": { "prefix": "", - "text": " ❯" + "text": " \u276F" } } ``` diff --git a/segment_test.go b/segment_test.go index 20cf0b19..c7d43671 100755 --- a/segment_test.go +++ b/segment_test.go @@ -38,7 +38,7 @@ func TestParseTestSettings(t *testing.T) { "foreground": "#ffffff", "background": "#61AFEF", "properties": { - "prefix": "  ", + "prefix": " \uE5FF ", "style": "folder", "ignore_folders": [ "go-my-psh" diff --git a/themes/agnoster.json b/themes/agnoster.json index a1a8b6e4..6db5fb1b 100644 --- a/themes/agnoster.json +++ b/themes/agnoster.json @@ -45,7 +45,7 @@ "foreground": "#100e23", "background": "#906cff", "properties": { - "prefix": "  " + "prefix": " \uE235 " } }, { diff --git a/themes/aliens.json b/themes/aliens.json index 5039a91c..fffeaa01 100644 --- a/themes/aliens.json +++ b/themes/aliens.json @@ -9,7 +9,7 @@ "style": "diamond", "foreground": "#ffffff", "background": "#61AFEF", - "leading_diamond": "", + "leading_diamond": "\uE0B6", "trailing_diamond": "\uE0B0" }, { @@ -35,7 +35,7 @@ "foreground": "#ffffff", "background": "#FF6471", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B4", "properties": { "prefix": "\uE0B0 " } diff --git a/themes/avit.json b/themes/avit.json index 5ce9e754..b2b6a9f2 100644 --- a/themes/avit.json +++ b/themes/avit.json @@ -46,7 +46,7 @@ "foreground": "#007ACC", "properties": { "prefix": "", - "text": "▶" + "text": "\uE602" } } ] diff --git a/themes/emodipt.json b/themes/emodipt.json index c929fbe2..645e5abc 100644 --- a/themes/emodipt.json +++ b/themes/emodipt.json @@ -33,7 +33,6 @@ "style": "plain", "foreground": "#F3C267", "properties": { - "branch_icon": "\u1F6A6 ", "display_status": true, "branch_identical_icon": "\uF14A", "branch_gone_icon": "\u274E" @@ -53,7 +52,7 @@ "foreground": "#E06C75", "properties": { "prefix": "", - "text": " ❯" + "text": " \u276F" } } ] diff --git a/themes/fish.json b/themes/fish.json index 0a1cf47a..358516a1 100644 --- a/themes/fish.json +++ b/themes/fish.json @@ -29,7 +29,7 @@ "background": "#007ACC", "properties" : { "folder_icon": "\uF115", - "folder_separator_icon": "", + "folder_separator_icon": "\uE0B1", "style": "short", "prefix": "\uE0B0 ", "postfix": " " @@ -41,7 +41,7 @@ "foreground": "#ffffff", "background": "#007ACC", "properties": { - "prefix": "<#ffffff> ", + "prefix": "<#ffffff>\uE0B1 ", "postfix": " " } }, diff --git a/themes/honukai.json b/themes/honukai.json index 1d599a8c..e2cacc89 100644 --- a/themes/honukai.json +++ b/themes/honukai.json @@ -21,7 +21,7 @@ "foreground": "#0973C0", "properties": { "folder_icon": "\uF115", - "folder_separator_icon": "", + "folder_separator_icon": "\uE0B1", "style": "short" } }, @@ -70,7 +70,7 @@ "style": "plain", "foreground": "#100e23", "properties": { - "prefix": "  " + "prefix": " \uE235 " } }, { @@ -84,7 +84,7 @@ "foreground": "#CC4B16", "properties": { "prefix": "", - "text": "→" + "text": "\u279C" } } ] diff --git a/themes/jandedobbeleer.json b/themes/jandedobbeleer.json index d4ad8048..73de17d0 100644 --- a/themes/jandedobbeleer.json +++ b/themes/jandedobbeleer.json @@ -9,7 +9,7 @@ "style": "diamond", "foreground": "#ffffff", "background": "#c386f1", - "leading_diamond": "", + "leading_diamond": "\uE0B6", "trailing_diamond": "\uE0B0" }, { @@ -19,7 +19,7 @@ "foreground": "#ffffff", "background": "#1BD760", "properties": { - "prefix": "  " + "prefix": " \uF9C6 " } }, { @@ -29,7 +29,7 @@ "foreground": "#ffffff", "background": "#ff479c", "properties": { - "prefix": "  ", + "prefix": " \uE5FF ", "style": "folder" } }, @@ -66,7 +66,7 @@ "foreground": "#ffffff", "background": "#6CA35E", "properties": { - "prefix": "  " + "prefix": " \uE718 " } }, { @@ -92,13 +92,13 @@ "foreground": "#ffffff", "background": "#2e9599", "leading_diamond": "", - "trailing_diamond": "", + "trailing_diamond": "\uE0B4", "properties": { "display_exit_code": false, "always_enabled": true, "error_color": "#f1184c", "color_background": true, - "prefix": "\uE0B0 " + "prefix": "\uE0B0 \uE23A" } } ] diff --git a/themes/lambda.json b/themes/lambda.json index 684f99ce..72ec8c9a 100644 --- a/themes/lambda.json +++ b/themes/lambda.json @@ -10,7 +10,7 @@ "foreground": "#F5F5F5", "properties": { "prefix": "", - "text": "ﬦ" + "text": "\uFB26" } }, { diff --git a/themes/material.json b/themes/material.json index a5af76b9..7caf94c4 100644 --- a/themes/material.json +++ b/themes/material.json @@ -10,7 +10,7 @@ "foreground": "#ffffff", "properties": { "prefix": "", - "text": "<#C591E8>❭<#69FF94>❭" + "text": "<#C591E8>\u276F<#69FF94>\u276F" } }, { @@ -37,7 +37,7 @@ "style": "plain", "foreground": "#DCB977", "properties": { - "prefix": "✗", + "prefix": "\uD00D", "display_exit_code": false } }, diff --git a/themes/paradox.json b/themes/paradox.json index 424df647..9fd413ee 100644 --- a/themes/paradox.json +++ b/themes/paradox.json @@ -26,7 +26,7 @@ "background": "#91ddff", "properties": { "folder_icon": "\uF115", - "folder_separator_icon": "", + "folder_separator_icon": "\uE0B1", "style": "short" } }, @@ -44,7 +44,7 @@ "foreground": "#100e23", "background": "#906cff", "properties": { - "prefix": "  " + "prefix": " \uE235 " } }, { @@ -72,7 +72,7 @@ "foreground": "#007ACC", "properties": { "prefix": "", - "text": "" + "text": "\u276F" } } ] diff --git a/themes/pararussel.json b/themes/pararussel.json index 084df342..171ae16a 100644 --- a/themes/pararussel.json +++ b/themes/pararussel.json @@ -10,7 +10,7 @@ "foreground": "#ffffff", "properties": { "prefix": "", - "text": "<#C591E8>❭<#69FF94>❭" + "text": "<#C591E8>\u276F<#69FF94>\u276F" } }, { @@ -37,7 +37,7 @@ "style": "plain", "foreground": "#DCB977", "properties": { - "prefix": "✗", + "prefix": "\uD00D", "display_exit_code": false } } @@ -71,7 +71,7 @@ "foreground": "#ffffff", "properties": { "prefix": "", - "text": "" + "text": "\uF441" } } ] diff --git a/themes/powerlevel10k_classic.json b/themes/powerlevel10k_classic.json index 92b43a92..acbc64bf 100644 --- a/themes/powerlevel10k_classic.json +++ b/themes/powerlevel10k_classic.json @@ -10,7 +10,7 @@ "foreground": "#26C6DA", "background": "#546E7A", "properties": { - "postfix": " " + "postfix": " \uE0B1" } }, { @@ -35,7 +35,7 @@ "foreground": "#D4E157", "background": "#546E7A", "properties": { - "prefix": "<#26C6DA> " + "prefix": "<#26C6DA>\uE0B1 " } }, { @@ -60,9 +60,9 @@ "style": "diamond", "foreground": "#D4E157", "background": "#546E7A", - "leading_diamond": "", + "leading_diamond": "\uE0B2", "properties": { - "postfix": " <#26C6DA> " + "postfix": " <#26C6DA>\uE0B3 " } }, { @@ -72,7 +72,7 @@ "background": "#546E7A", "properties": { "time_format": "15:04:05", - "postfix": "  " + "postfix": " \uF017 " } } ] @@ -89,7 +89,7 @@ "style": "plain", "foreground": "#D4E157", "properties": { - "prefix": "❯", + "prefix": "\u276F", "always_enabled": true, "error_color": "#FF5252", "display_exit_code": false diff --git a/themes/powerlevel10k_lean.json b/themes/powerlevel10k_lean.json index 9004208e..e123eca0 100644 --- a/themes/powerlevel10k_lean.json +++ b/themes/powerlevel10k_lean.json @@ -45,7 +45,7 @@ "foreground": "#43D426", "properties": { "prefix": "", - "text": "❯" + "text": "\u276F" } } ] diff --git a/themes/powerline.json b/themes/powerline.json index 9fe56ae9..4de681d3 100644 --- a/themes/powerline.json +++ b/themes/powerline.json @@ -38,7 +38,7 @@ "foreground": "#100e23", "background": "#906cff", "properties": { - "prefix": "  " + "prefix": " \uE235 " } }, { diff --git a/themes/robbyrussel.json b/themes/robbyrussel.json index 588a6535..997026ab 100644 --- a/themes/robbyrussel.json +++ b/themes/robbyrussel.json @@ -10,7 +10,7 @@ "foreground": "#98C379", "properties": { "prefix": "", - "text": "→", + "text": "\u279C", "postfix": "" } }, @@ -38,7 +38,7 @@ "style": "plain", "foreground": "#DCB977", "properties": { - "prefix": "✗", + "prefix": "\uD00D", "display_exit_code": false } } diff --git a/themes/sorin.json b/themes/sorin.json index 5424eadd..63167972 100644 --- a/themes/sorin.json +++ b/themes/sorin.json @@ -40,7 +40,7 @@ "style": "plain", "foreground": "#100e23", "properties": { - "prefix": "  " + "prefix": " \uE235 " } }, { @@ -49,7 +49,7 @@ "foreground": "#ffffff", "properties": { "prefix": "", - "text": "<#CB4B16>❭<#CACA02>❭<#4E9A06>❭" + "text": "<#CB4B16>\u276F<#CACA02>\u276F<#4E9A06>\u276F" } } ] diff --git a/themes/star.json b/themes/star.json index 204da2b4..300443c6 100644 --- a/themes/star.json +++ b/themes/star.json @@ -65,7 +65,7 @@ "foreground": "#63F08C", "properties": { "prefix": "", - "text": "→" + "text": "\u279C" } } ] diff --git a/themes/zash.json b/themes/zash.json index 6ed1d94d..cb8948ac 100644 --- a/themes/zash.json +++ b/themes/zash.json @@ -19,7 +19,7 @@ "style": "plain", "foreground": "#62ED8B", "properties": { - "text": "→", + "text": "\u279C", "postfix": "", "prefix": "" } @@ -49,7 +49,7 @@ "style": "plain", "foreground": "#DCB977", "properties": { - "prefix": "✗", + "prefix": "\uD00D", "display_exit_code": false, "postfix": "" }