From 7af7304529a3079f7cb7afc521697d73c72a3c03 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 10 Sep 2025 12:16:53 +0200 Subject: [PATCH] header cosmetics --- lib/tableeditor.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/tableeditor.go b/lib/tableeditor.go index ab9bf6b..d9b0055 100644 --- a/lib/tableeditor.go +++ b/lib/tableeditor.go @@ -118,9 +118,8 @@ var ( Align(lipgloss.Left) StyleHeader = lipgloss.NewStyle(). - Background(lipgloss.Color("#ffffff")). - Foreground(lipgloss.Color("#696969")). - Align(lipgloss.Left) + Foreground(lipgloss.Color("#ff4500")). + Align(lipgloss.Left).Bold(true) // help buffer styles StyleKey = lipgloss.NewStyle().Bold(true) @@ -230,9 +229,9 @@ func NewModel(data *Tabdata, ctx *Context) FilterTable { // setup column data with flexColumns for idx, header := range data.headers { - // FIXME: doesn't work - //columns[idx] = table.NewFlexColumn(strings.ToLower(header), StyleHeader.Render(header), - columns[idx] = table.NewFlexColumn(strings.ToLower(header), header, + columns[idx] = table.NewFlexColumn( + strings.ToLower(header), + StyleHeader.Render(header), lengths[idx]).WithFiltered(true).WithStyle(NoStyle) }