summaryrefslogtreecommitdiff
path: root/tableCallbacks.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-23 15:28:09 -0700
committerJeff Carr <[email protected]>2019-05-23 15:28:09 -0700
commit963a910a436a8afa9f2bd510075a06438a77ebbf (patch)
treea2e4d11d2f835e10f468dcc5854185203ac28a7a /tableCallbacks.go
parenta8d43bea8201d07bf2b371d87100e8e98fa1628e (diff)
ignore background color on windows for now
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
-rw-r--r--tableCallbacks.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go
index 71dc6b8..62c9692 100644
--- a/tableCallbacks.go
+++ b/tableCallbacks.go
@@ -9,6 +9,7 @@ package gui
import "log"
import "fmt"
import "image/color"
+import "runtime"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
@@ -52,8 +53,11 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue
}
if (column == mh.Human[humanID].ColorID) {
if (column == 0) {
- log.Println("CellValue() is BG COLOR row, column =", row, column)
- return nil
+ // ignore BG color on windows for now
+ if (runtime.GOOS == "windows") {
+ log.Println("CellValue() is BG COLOR row, column =", row, column)
+ return nil
+ }
}
return libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color)
}