summaryrefslogtreecommitdiff
path: root/tableCallbacks.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-12 21:44:05 -0700
committerJeff Carr <[email protected]>2019-05-12 21:44:05 -0700
commit12e37b4d1faf3f19a4a5149a94b9fb613d7f9793 (patch)
treeb5e930b683df18a4d514ef5683be368760a93200 /tableCallbacks.go
parente5158c4ade120977fa9a5cfe576d6ecc94fbd2d4 (diff)
also set the color
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
-rw-r--r--tableCallbacks.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go
index 6e6d14c..194aab0 100644
--- a/tableCallbacks.go
+++ b/tableCallbacks.go
@@ -28,6 +28,9 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue
if (column == mh.Rows[row].Human[humanID].TextID) {
return mh.Rows[row].Human[humanID].Text
}
+ if (column == mh.Rows[row].Human[humanID].ColorID) {
+ return mh.Rows[row].Human[humanID].Color
+ }
return mh.Rows[row].Cells[column].Value
}