From d1c58b4ba94946bfb9685dbcc544e97faf84a965 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Fri, 1 Feb 2019 17:22:43 +0000 Subject: [PATCH] Set the separator styles to that of the block --- widgets/table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/table.go b/widgets/table.go index c7f3761..2ba8cc6 100644 --- a/widgets/table.go +++ b/widgets/table.go @@ -85,7 +85,7 @@ func (self *Table) Draw(buf *Buffer) { // draw vertical separators separatorXCoordinate := self.Inner.Min.X - verticalCell := NewCell(VERTICAL_LINE, NewStyle(ColorWhite)) + verticalCell := NewCell(VERTICAL_LINE, self.Block.BorderStyle) for _, width := range columnWidths { separatorXCoordinate += width buf.SetCell(verticalCell, image.Pt(separatorXCoordinate, yCoordinate)) @@ -95,7 +95,7 @@ func (self *Table) Draw(buf *Buffer) { yCoordinate++ // draw horizontal separator - horizontalCell := NewCell(HORIZONTAL_LINE, NewStyle(ColorWhite)) + horizontalCell := NewCell(HORIZONTAL_LINE, self.Block.BorderStyle) if self.RowSeparator && yCoordinate < self.Inner.Max.Y && i != len(self.Rows)-1 { buf.Fill(horizontalCell, image.Rect(self.Inner.Min.X, yCoordinate, self.Inner.Max.X, yCoordinate+1)) yCoordinate++