diff options
| author | Jeff Carr <[email protected]> | 2019-06-05 10:01:36 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-05 10:01:36 -0700 |
| commit | ba93e331fdc2a7ec883ac2f9e954e60d99f24285 (patch) | |
| tree | 9398cafef120a380722bdf84ec5bf6d9a005fe08 /tableCallbacks.go | |
| parent | 224740b4b8f346eba159004c82ed54ce52c2adb2 (diff) | |
reimplement the color button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
| -rw-r--r-- | tableCallbacks.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go index 954a832..966f173 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -29,18 +29,6 @@ func (mh *TableData) ColumnTypes(m *ui.TableModel) []ui.TableValue { return mh.generatedColumnTypes } -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} -} - // TODO: Figure out why this is being called 1000 times a second (10 times for each row & column) // Nevermind this TODO. Who gives a shit. This is a really smart way to treat the OS toolkits func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue { |
