style: Rounded border
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
bfbd031e41
commit
7435512ffb
1 changed files with 1 additions and 3 deletions
|
@ -19,12 +19,10 @@ func New() *table.Table {
|
||||||
HeaderStyle = re.NewStyle().Foreground(white).Bold(true).Align(lipgloss.Center)
|
HeaderStyle = re.NewStyle().Foreground(white).Bold(true).Align(lipgloss.Center)
|
||||||
CellStyle = re.NewStyle().Padding(0, 2)
|
CellStyle = re.NewStyle().Padding(0, 2)
|
||||||
EvenRowStyle = CellStyle.Foreground(lightGray)
|
EvenRowStyle = CellStyle.Foreground(lightGray)
|
||||||
BorderStyle = lipgloss.NewStyle().Foreground(white)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
t := table.New().
|
t := table.New().
|
||||||
Border(lipgloss.NormalBorder()).
|
Border(lipgloss.RoundedBorder()).
|
||||||
BorderStyle(BorderStyle).
|
|
||||||
StyleFunc(func(row, col int) lipgloss.Style {
|
StyleFunc(func(row, col int) lipgloss.Style {
|
||||||
switch {
|
switch {
|
||||||
case row == 0:
|
case row == 0:
|
||||||
|
|
Loading…
Reference in a new issue