From 7e9037a9f579964727ccf2996b7e88d22a7a8aa0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 23 May 2019 14:33:11 -0700 Subject: [PATCH] remove color hack Signed-off-by: Jeff Carr --- tableCallbacks.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tableCallbacks.go b/tableCallbacks.go index 103790a..3df6dd8 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -29,12 +29,14 @@ func (mh *TableData) ColumnTypes(m *ui.TableModel) []ui.TableValue { } func libuiColorToGOlangColor(rgba color.RGBA) ui.TableColor { + /* a hack to see if colors work differently on macos or windows 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} }