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)
|
||||
CellStyle = re.NewStyle().Padding(0, 2)
|
||||
EvenRowStyle = CellStyle.Foreground(lightGray)
|
||||
BorderStyle = lipgloss.NewStyle().Foreground(white)
|
||||
)
|
||||
|
||||
t := table.New().
|
||||
Border(lipgloss.NormalBorder()).
|
||||
BorderStyle(BorderStyle).
|
||||
Border(lipgloss.RoundedBorder()).
|
||||
StyleFunc(func(row, col int) lipgloss.Style {
|
||||
switch {
|
||||
case row == 0:
|
||||
|
|
Loading…
Reference in a new issue