From 42fa258a5e0bbb9442068605d20b351509fb7be7 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Fri, 29 Dec 2017 18:50:46 +0100 Subject: [PATCH] Added more colors to the text view. --- textview.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/textview.go b/textview.go index 28c4455..6879b7a 100644 --- a/textview.go +++ b/textview.go @@ -13,11 +13,13 @@ import ( // textColors maps color strings which may be embedded in text sent to a // TextView to their tcell counterparts. var textColors = map[string]tcell.Color{ - "red": tcell.ColorRed, - "white": tcell.ColorWhite, - "yellow": tcell.ColorYellow, - "blue": tcell.ColorBlue, - "green": tcell.ColorGreen, + "red": tcell.ColorRed, + "white": tcell.ColorWhite, + "yellow": tcell.ColorYellow, + "blue": tcell.ColorBlue, + "green": tcell.ColorGreen, + "cyan": tcell.ColorDarkCyan, + "magenta": tcell.ColorDarkMagenta, } // Regular expressions commonly used throughout the TextView class. @@ -70,7 +72,7 @@ type textViewIndex struct { // This is a [red]warning[white]! // // will print the word "warning" in red. The following colors are currently -// supported: white, yellow, blue, green, red. +// supported: white, yellow, blue, green, red, cyan, magenta. // // Regions and Highlights //