v0.1.4 tui uniform transparent background policy, tui example added

This commit is contained in:
2026-07-22 10:05:08 -04:00
parent 056401d20a
commit 228e8ac1ad
6 changed files with 1738 additions and 10 deletions
+10 -1
View File
@@ -129,7 +129,15 @@ func (r Region) Table(headers []string, rows [][]string, opts TableOpts) {
}
// renderTableRow renders a single table row
// The row is cleared to style.Bg across the full region width first, so
// alternating-row backgrounds render as continuous bands rather than only
// under glyphs. A zero style.Bg inherits the underlying background.
func (r Region) renderTableRow(y int, cells []string, widths []int, aligns []Align, sep rune, style Style) {
// Clear row with row background (full width, List-consistent banding)
for cx := 0; cx < r.W; cx++ {
r.Cell(cx, y, ' ', style.Fg, style.Bg, terminal.AttrNone)
}
x := 0
for i, w := range widths {
if x >= r.W {
@@ -177,4 +185,5 @@ func (r Region) renderTableRow(y int, cells []string, widths []int, aligns []Ali
x++
}
}
}
}