diff options
| author | Jeff Carr <[email protected]> | 2019-05-12 21:44:05 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-12 21:44:05 -0700 |
| commit | 12e37b4d1faf3f19a4a5149a94b9fb613d7f9793 (patch) | |
| tree | b5e930b683df18a4d514ef5683be368760a93200 | |
| parent | e5158c4ade120977fa9a5cfe576d6ecc94fbd2d4 (diff) | |
also set the color
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | tableCallbacks.go | 3 |
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 } |
