mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 12:31:06 +01:00
header cosmetics
This commit is contained in:
@@ -118,9 +118,8 @@ var (
|
|||||||
Align(lipgloss.Left)
|
Align(lipgloss.Left)
|
||||||
|
|
||||||
StyleHeader = lipgloss.NewStyle().
|
StyleHeader = lipgloss.NewStyle().
|
||||||
Background(lipgloss.Color("#ffffff")).
|
Foreground(lipgloss.Color("#ff4500")).
|
||||||
Foreground(lipgloss.Color("#696969")).
|
Align(lipgloss.Left).Bold(true)
|
||||||
Align(lipgloss.Left)
|
|
||||||
|
|
||||||
// help buffer styles
|
// help buffer styles
|
||||||
StyleKey = lipgloss.NewStyle().Bold(true)
|
StyleKey = lipgloss.NewStyle().Bold(true)
|
||||||
@@ -230,9 +229,9 @@ func NewModel(data *Tabdata, ctx *Context) FilterTable {
|
|||||||
|
|
||||||
// setup column data with flexColumns
|
// setup column data with flexColumns
|
||||||
for idx, header := range data.headers {
|
for idx, header := range data.headers {
|
||||||
// FIXME: doesn't work
|
columns[idx] = table.NewFlexColumn(
|
||||||
//columns[idx] = table.NewFlexColumn(strings.ToLower(header), StyleHeader.Render(header),
|
strings.ToLower(header),
|
||||||
columns[idx] = table.NewFlexColumn(strings.ToLower(header), header,
|
StyleHeader.Render(header),
|
||||||
lengths[idx]).WithFiltered(true).WithStyle(NoStyle)
|
lengths[idx]).WithFiltered(true).WithStyle(NoStyle)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user