Browse Source

Fixed Table cell background colors for column-only selections.

tablepad
Oliver 5 years ago
parent
commit
95e3124245
  1. 3
      table.go

3
table.go

@ -655,6 +655,9 @@ ColumnLoop:
leftCell := getCell(row, column-1)
if leftCell != nil {
if cell.BackgroundColor == leftCell.BackgroundColor {
if t.columnsSelectable && column == t.selectedColumn {
bgColor = cell.BackgroundColor
}
ch, _, style, _ := screen.GetContent(x+columnX, y+rowY)
screen.SetContent(x+columnX, y+rowY, ch, nil, style.Background(bgColor))
}

Loading…
Cancel
Save