From 1cf7ef53405963b22bb3a158e889766afabbb788 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Sat, 11 May 2019 19:40:56 +0200 Subject: ui: Use acme colors again, show full filename and show "Del" in tagline. --- ui/tcell/style.go | 21 +++++++++++---------- ui/tcell/window.go | 5 ++--- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'ui') diff --git a/ui/tcell/style.go b/ui/tcell/style.go index a179c1f..7561bf3 100644 --- a/ui/tcell/style.go +++ b/ui/tcell/style.go @@ -24,24 +24,25 @@ var ( // initStyles initializes the different styles (colors for background/foreground). func initStyles() error { - bodyStyle = tcell.StyleDefault + //bodyStyle = tcell.StyleDefault - // bodyStyle = tcell.StyleDefault. - // Background(tcell.NewHexColor(0xffffea)). - // Foreground(tcell.ColorBlack) + bodyStyle = tcell.StyleDefault. + Background(tcell.NewHexColor(0xffffea)). + Foreground(tcell.ColorBlack) bodyCursorStyle = bodyStyle. Background(tcell.NewHexColor(0xeaea9e)) - bodyHilightStyle = bodyStyle.Reverse(true) - // bodyHilightStyle = bodyStyle. - // Background(tcell.NewHexColor(0xa6a65a)) + //bodyHilightStyle = bodyStyle.Reverse(true) + bodyHilightStyle = bodyStyle. + Background(tcell.NewHexColor(0xa6a65a)) unprintableStyle = bodyStyle. Foreground(tcell.ColorRed) - tagStyle = tcell.StyleDefault.Reverse(true) - //Background(tcell.NewHexColor(0xeaffff)). - //Foreground(tcell.ColorBlack) + //tagStyle = tcell.StyleDefault.Reverse(true) + tagStyle = tcell.StyleDefault. + Background(tcell.NewHexColor(0xeaffff)). + Foreground(tcell.ColorBlack) tagCursorStyle = tagStyle. Background(tcell.NewHexColor(0x8888cc)). Foreground(tcell.ColorBlack) diff --git a/ui/tcell/window.go b/ui/tcell/window.go index d278082..b52fbaf 100644 --- a/ui/tcell/window.go +++ b/ui/tcell/window.go @@ -2,7 +2,6 @@ package uitcell import ( "fmt" - "strings" "github.com/gdamore/tcell" "github.com/prodhe/poe/editor" @@ -42,7 +41,7 @@ func NewWindow(id int64) *Window { }, } - fmt.Fprintf(win.tagline, "%s ", + fmt.Fprintf(win.tagline, "%s Del ", win.TagName(), ) @@ -90,7 +89,7 @@ func (win *Window) Name() string { } func (win *Window) TagName() string { - return strings.TrimPrefix(win.body.text.Name(), ed.WorkDir()) + return win.body.text.Name() } func (win *Window) Dir() string { -- cgit v1.2.3