From 0f7b3cffb79fc690bf6d2a911d2226d850ab6736 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 16 Oct 2020 08:48:49 +0200 Subject: [PATCH] refactor: replace root icon --- docs/docs/segment-root.md | 2 +- segment_root.go | 2 +- themes/honukai.json | 2 -- themes/jandedobbeleer.json | 10 ---------- 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/docs/segment-root.md b/docs/docs/segment-root.md index 98f82051..1ba1e46b 100644 --- a/docs/docs/segment-root.md +++ b/docs/docs/segment-root.md @@ -18,7 +18,7 @@ Show when the current user is root or when in an elevated shell (Windows). "foreground": "#111111", "background": "#ffff66", "properties": { - "root_icon": "" + "root_icon": "\uF0E7" } } ``` diff --git a/segment_root.go b/segment_root.go index e540c773..d6d0d93a 100644 --- a/segment_root.go +++ b/segment_root.go @@ -15,7 +15,7 @@ func (rt *root) enabled() bool { } func (rt *root) string() string { - return rt.props.getString(RootIcon, "\uE20F") + return rt.props.getString(RootIcon, "\uF0E7") } func (rt *root) init(props *properties, env environmentInfo) { diff --git a/themes/honukai.json b/themes/honukai.json index 42f40047..ac7f1b34 100644 --- a/themes/honukai.json +++ b/themes/honukai.json @@ -72,7 +72,6 @@ "foreground": "#CECE04", "properties": { "prefix": "" - } }, { @@ -80,7 +79,6 @@ "style": "plain", "foreground": "#100e23", "properties": { - "prefix": "", "prefix": "  " } }, diff --git a/themes/jandedobbeleer.json b/themes/jandedobbeleer.json index 8bf7603a..816ccb6b 100644 --- a/themes/jandedobbeleer.json +++ b/themes/jandedobbeleer.json @@ -95,16 +95,6 @@ "prefix": "  " } }, - { - "type": "root", - "style": "powerline", - "powerline_symbol": "\uE0B0", - "foreground": "#111111", - "background": "#ffff66", - "properties": { - "root_icon": "" - } - }, { "type": "shell", "style": "powerline",