From 3843e893957f178e4b25236e8be8f2139ddc077f Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Mon, 27 May 2024 08:01:05 -0700 Subject: [PATCH] add HideSeparators for table --- widget/table.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/widget/table.go b/widget/table.go index 444341bc91..6a4d341092 100644 --- a/widget/table.go +++ b/widget/table.go @@ -82,6 +82,11 @@ type Table struct { // Since: 2.4 StickyColumnCount int + // HideSeparators hides the separator lines between the table cells + // + // Since: 2.5 + HideSeparators bool + currentFocus TableCellID focused bool selectedCell, hoveredCell *TableCellID @@ -1043,6 +1048,11 @@ func (t *tableRenderer) Layout(s fyne.Size) { t.t.corner.Resize(fyne.NewSize(off.X, off.Y)) t.t.dividerLayer.Resize(s) + if t.t.HideSeparators { + t.t.dividerLayer.Hide() + } else { + t.t.dividerLayer.Show() + } } func (t *tableRenderer) MinSize() fyne.Size {