ignore background color on windows for now
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a8d43bea82
commit
963a910a43
|
@ -9,6 +9,7 @@ package gui
|
||||||
import "log"
|
import "log"
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
|
import "runtime"
|
||||||
|
|
||||||
import "github.com/andlabs/ui"
|
import "github.com/andlabs/ui"
|
||||||
import _ "github.com/andlabs/ui/winmanifest"
|
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 == mh.Human[humanID].ColorID) {
|
||||||
if (column == 0) {
|
if (column == 0) {
|
||||||
log.Println("CellValue() is BG COLOR row, column =", row, column)
|
// ignore BG color on windows for now
|
||||||
return nil
|
if (runtime.GOOS == "windows") {
|
||||||
|
log.Println("CellValue() is BG COLOR row, column =", row, column)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color)
|
return libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue