diff options
| author | Jeff Carr <[email protected]> | 2019-05-23 14:02:04 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-23 14:02:04 -0700 |
| commit | 3e8617d05c515b7772a35089226c47fb3d27b7c9 (patch) | |
| tree | 0987384b626dcab9e792408ad6494cd2f24b5209 /tableCallbacks.go | |
| parent | e00585d71aec4870c46dc6216f990e41ad209c9c (diff) | |
try to return a nil color
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
| -rw-r--r-- | tableCallbacks.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go index b526243..103790a 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -29,6 +29,12 @@ func (mh *TableData) ColumnTypes(m *ui.TableModel) []ui.TableValue { } func libuiColorToGOlangColor(rgba color.RGBA) ui.TableColor { + if (rgba.R == 72) { + log.Println("SETTING COLOR TO NIL") + log.Println("SETTING COLOR TO NIL") + log.Println("SETTING COLOR TO NIL") + return ui.TableColor{} + } return ui.TableColor{float64(rgba.R) / 256, float64(rgba.G) / 256, float64(rgba.B) / 256, float64(rgba.A) / 256} } @@ -44,6 +50,7 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue } if (column == mh.Human[humanID].ColorID) { return libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color) + return libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color) } log.Println("CellValue() FAILURE") log.Println("CellValue() FAILURE") |
