diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-03 14:31:24 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-03 14:31:24 +0100 |
commit | 99c5904ce43856de9091c853f53ce5d5d05a47e5 (patch) | |
tree | 5ad18ab501bd924fb453b743571070a892289058 /ui/tcell | |
parent | ab904c6419d6b54b4ef147db63320730a324fd4d (diff) | |
download | poe-99c5904ce43856de9091c853f53ce5d5d05a47e5.tar.gz poe-99c5904ce43856de9091c853f53ce5d5d05a47e5.tar.bz2 poe-99c5904ce43856de9091c853f53ce5d5d05a47e5.zip |
Separate acme color scheme and use terminal default as default.
Diffstat (limited to 'ui/tcell')
-rw-r--r-- | ui/tcell/style.go | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ui/tcell/style.go b/ui/tcell/style.go index 7561bf3..2249ea2 100644 --- a/ui/tcell/style.go +++ b/ui/tcell/style.go @@ -1,6 +1,6 @@ package uitcell -import "github.com/gdamore/tcell" +import tcell "github.com/gdamore/tcell/v2" var ( // body is the main editing buffer @@ -24,22 +24,27 @@ var ( // initStyles initializes the different styles (colors for background/foreground). func initStyles() error { - //bodyStyle = tcell.StyleDefault + bodyStyle = tcell.StyleDefault + bodyHilightStyle = bodyStyle.Reverse(true) + unprintableStyle = bodyStyle. + Foreground(tcell.ColorRed) + tagStyle = tcell.StyleDefault.Reverse(true) + vertlineStyle = bodyStyle.Reverse(false) + + return nil +} +// acmeStyles sets the color scheme to acme. +func setStyleAcme() error { 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)) unprintableStyle = bodyStyle. Foreground(tcell.ColorRed) - - //tagStyle = tcell.StyleDefault.Reverse(true) tagStyle = tcell.StyleDefault. Background(tcell.NewHexColor(0xeaffff)). Foreground(tcell.ColorBlack) @@ -52,7 +57,6 @@ func initStyles() error { Background(tcell.NewHexColor(0x8888cc)) tagSquareModifiedStyle = tagStyle. Background(tcell.NewHexColor(0x2222cc)) - vertlineStyle = bodyStyle.Reverse(false) return nil |