From 843873c84c060e0f70faf527748bee48e063a305 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 May 2019 16:47:24 -0700 Subject: [PATCH] more color tests Signed-off-by: Jeff Carr --- tableCallbacks.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tableCallbacks.go b/tableCallbacks.go index bf58856..e63c5b3 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -57,9 +57,16 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue if (column == 0) { // ignore BG color on windows for now if (runtime.GOOS == "windows") { - log.Println("CellValue() WINDOWS is BG COLOR row, column =", row, column) + // TODO: fix colors on windows + // log.Println("CellValue() WINDOWS is BG COLOR row, column =", row, column) // return nil } + + if (mh.Rows[row].HumanData[humanID].Color == color.RGBA{255, 255, 255, 255}) { + log.Println("CellValue() color.RGBA{255, 255, 255, 255} so return nil. row, column =", row, column) + return nil + } + bgcolor := libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color) if (Data.Debug) { log.Println("CellValue() BGCOLOR =", bgcolor)