small size fix and colors added
This commit is contained in:
parent
7844cacb25
commit
796bbf4d66
3 changed files with 18 additions and 9 deletions
|
|
@ -10,6 +10,7 @@ import (
|
|||
"github.com/kujtimiihoxha/termai/internal/logging"
|
||||
"github.com/kujtimiihoxha/termai/internal/pubsub"
|
||||
"github.com/kujtimiihoxha/termai/internal/tui/layout"
|
||||
"github.com/kujtimiihoxha/termai/internal/tui/styles"
|
||||
)
|
||||
|
||||
type TableComponent interface {
|
||||
|
|
@ -122,8 +123,11 @@ func NewLogsTable() TableComponent {
|
|||
{Title: "Message", Width: 10},
|
||||
{Title: "Attributes", Width: 10},
|
||||
}
|
||||
defaultStyles := table.DefaultStyles()
|
||||
defaultStyles.Selected = defaultStyles.Selected.Foreground(styles.Primary)
|
||||
tableModel := table.New(
|
||||
table.WithColumns(columns),
|
||||
table.WithStyles(defaultStyles),
|
||||
)
|
||||
return &tableCmp{
|
||||
table: tableModel,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue