diff options
| author | Jeff Carr <[email protected]> | 2019-05-28 16:47:24 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-28 16:47:24 -0700 |
| commit | 3f91f19f6899b50ecc5030825e1aa946f2cb3c0e (patch) | |
| tree | e941b0d414beb49282840b71f79bbc6232ed80d9 | |
| parent | 3c7f9295475637b94e3e7ae3f8313988ef32d54d (diff) | |
more color tests
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | tableCallbacks.go | 9 |
1 files changed, 8 insertions, 1 deletions
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) |
