ssm-browse: header styling

This commit is contained in:
Leon Mika 2022-03-30 22:52:26 +11:00
parent 798150a403
commit 1b8518b6e4
9 changed files with 76 additions and 28 deletions

View file

@ -11,6 +11,13 @@ import (
"github.com/lmika/awstools/internal/dynamo-browse/ui/teamodels/layout"
)
var (
activeHeaderStyle = lipgloss.NewStyle().
Bold(true).
Foreground(lipgloss.Color("#ffffff")).
Background(lipgloss.Color("#4479ff"))
)
type Model struct {
frameTitle frame.FrameTitle
table table.Model
@ -26,7 +33,7 @@ func New() *Model {
rows := make([]table.Row, 0)
tbl.SetRows(rows)
frameTitle := frame.NewFrameTitle("No table", true)
frameTitle := frame.NewFrameTitle("No table", true, activeHeaderStyle)
return &Model{
frameTitle: frameTitle,