diff options
| author | Kujtim Hoxha <[email protected]> | 2025-03-23 15:17:51 +0100 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-03-23 15:17:51 +0100 |
| commit | 796bbf4d66c0fc70e750c7f582019cb9a7298e59 (patch) | |
| tree | b2973e9b17191fbb96a259b3f8efe7c1071ecbf5 /internal/tui/components | |
| parent | 7844cacb257b14087bcb12764466ee0eeeb1921b (diff) | |
| download | opencode-796bbf4d66c0fc70e750c7f582019cb9a7298e59.tar.gz opencode-796bbf4d66c0fc70e750c7f582019cb9a7298e59.zip | |
small size fix and colors added
Diffstat (limited to 'internal/tui/components')
| -rw-r--r-- | internal/tui/components/logs/table.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/tui/components/logs/table.go b/internal/tui/components/logs/table.go index 0387af83b..c268fc686 100644 --- a/internal/tui/components/logs/table.go +++ b/internal/tui/components/logs/table.go @@ -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, |
