From a0591e399d5228ce27a2ca55acb5376c2b76ccac Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Sat, 6 Mar 2021 20:14:06 +0100 Subject: Manage columns in a sane way. --- ui/tcell/style.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'ui/tcell/style.go') diff --git a/ui/tcell/style.go b/ui/tcell/style.go index fec3390..528dbe6 100644 --- a/ui/tcell/style.go +++ b/ui/tcell/style.go @@ -25,12 +25,18 @@ var ( // initStyles initializes the different styles (colors for background/foreground). func initStyles() error { bodyStyle = tcell.StyleDefault + // bodyCursorStyle = tcell.StyleDefault bodyHilightStyle = bodyStyle.Reverse(true) - unprintableStyle = bodyStyle. - Foreground(tcell.ColorRed) + tagStyle = tcell.StyleDefault.Reverse(true) - vertlineStyle = bodyStyle.Reverse(false) + tagCursorStyle = tcell.StyleDefault.Reverse(true) + tagHilightStyle = tagStyle.Reverse(false) + tagSquareStyle = tcell.StyleDefault.Reverse(true) + tagSquareModifiedStyle = tcell.StyleDefault.Reverse(true) + vertlineStyle = bodyStyle.Reverse(false) + unprintableStyle = bodyStyle. + Foreground(tcell.ColorRed) return nil } @@ -39,8 +45,7 @@ func setStyleAcme() error { bodyStyle = tcell.StyleDefault. Background(tcell.NewHexColor(0xffffea)). Foreground(tcell.ColorBlack.TrueColor()) - bodyCursorStyle = bodyStyle. - Background(tcell.NewHexColor(0xeaea9e)) + // bodyCursorStyle = bodyStyle.Background(tcell.NewHexColor(0xeaea9e)) bodyHilightStyle = bodyStyle. Background(tcell.NewHexColor(0xeeee9e)) unprintableStyle = bodyStyle. @@ -48,9 +53,7 @@ func setStyleAcme() error { tagStyle = tcell.StyleDefault. Background(tcell.NewHexColor(0xeaffff)). Foreground(tcell.ColorBlack.TrueColor()) - tagCursorStyle = tagStyle. - Background(tcell.NewHexColor(0x8888cc)). - Foreground(tcell.ColorBlack.TrueColor()) + // tagCursorStyle = tagStyle.Background(tcell.NewHexColor(0x8888cc)).Foreground(tcell.ColorBlack.TrueColor()) tagHilightStyle = tagStyle. Background(tcell.NewHexColor(0x9eeeee)) tagSquareStyle = tagStyle. -- cgit v1.2.3