From 2821fe6424f968ccb3ce2a34d7febb1e513d582c Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 16 Oct 2020 19:15:11 +0200 Subject: [PATCH] refactor: update default settings --- settings.go | 86 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 66 insertions(+), 20 deletions(-) diff --git a/settings.go b/settings.go index ab9fe828..c4a99493 100755 --- a/settings.go +++ b/settings.go @@ -74,47 +74,93 @@ func getDefaultSettings() *Settings { Type: Prompt, Alignment: Left, Segments: []*Segment{ - { - Type: Root, - Style: Powerline, - PowerlineSymbol: "\uE0B0", - Background: "#ffe9aa", - Foreground: "#100e23", - }, { Type: Session, - Style: Powerline, - PowerlineSymbol: "\uE0B0", - Background: "#ffffff", - Foreground: "#100e23", + Style: Diamond, + Background: "#c386f1", + Foreground: "#ffffff", + LeadingDiamond: "\uE0B6", + TrailingDiamond: "\uE0B0", }, { Type: Path, Style: Powerline, PowerlineSymbol: "\uE0B0", - Background: "#91ddff", - Foreground: "#100e23", + Background: "#ff479c", + Foreground: "#ffffff", + Properties: map[Property]interface{}{ + Prefix: " \uE5FF ", + Style: "folder", + }, }, { Type: Git, Style: Powerline, PowerlineSymbol: "\uE0B0", - Background: "#95ffa4", - Foreground: "#100e23", + Background: "#fffb38", + Foreground: "#193549", + Properties: map[Property]interface{}{ + DisplayStashCount: true, + DisplayUpstreamIcon: true, + }, }, { - Type: Python, + Type: Battery, Style: Powerline, PowerlineSymbol: "\uE0B0", - Background: "#906cff", - Foreground: "#100e23", + Background: "#f36943", + Foreground: "#193549", + Properties: map[Property]interface{}{ + BatteryIcon: "", + ColorBackground: true, + ChargedColor: "#4caf50", + ChargingColor: "#40c4ff", + DischargingColor: "#ff5722", + Postfix: "\uF295 ", + }, + }, + { + Type: Node, + Style: Powerline, + PowerlineSymbol: "\uE0B0", + Background: "#6CA35E", + Foreground: "#ffffff", + Properties: map[Property]interface{}{ + Prefix: " \uE718 ", + }, + }, + { + Type: ShellInfo, + Style: Powerline, + PowerlineSymbol: "\uE0B0", + Background: "#0077c2", + Foreground: "#ffffff", + Properties: map[Property]interface{}{ + Prefix: " \uFCB5 ", + }, + }, + { + Type: Root, + Style: Powerline, + PowerlineSymbol: "\uE0B0", + Background: "#ffff66", + Foreground: "#ffffff", }, { Type: Exit, - Style: Powerline, + Style: Diamond, PowerlineSymbol: "\uE0B0", - Background: "#ff8080", + Background: "#2e9599", Foreground: "#ffffff", + LeadingDiamond: "", + TrailingDiamond: "\uE0B4", + Properties: map[Property]interface{}{ + DisplayExitCode: false, + AlwaysEnabled: true, + ErrorColor: "#f1184c", + ColorBackground: true, + Prefix: "\uE0B0 \uE23A", + }, }, }, },