diff options
| author | adamdottv <[email protected]> | 2025-06-20 11:25:21 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-20 11:25:21 -0500 |
| commit | 9ea0d71e8df92a168d9b922043e3da161bb7d613 (patch) | |
| tree | c5b069a52a0add76b53444549e6a26f5be4f5e08 /packages/tui/internal/components/commands | |
| parent | b1a3599017893cff4720a6daca2f95ad9f869130 (diff) | |
| download | opencode-9ea0d71e8df92a168d9b922043e3da161bb7d613.tar.gz opencode-9ea0d71e8df92a168d9b922043e3da161bb7d613.zip | |
fix(tui): async load messages on theme/session switch
Diffstat (limited to 'packages/tui/internal/components/commands')
| -rw-r--r-- | packages/tui/internal/components/commands/commands.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/tui/internal/components/commands/commands.go b/packages/tui/internal/components/commands/commands.go index 75b27779b..e7b1771f8 100644 --- a/packages/tui/internal/components/commands/commands.go +++ b/packages/tui/internal/components/commands/commands.go @@ -18,6 +18,7 @@ type CommandsComponent interface { tea.Model tea.ViewModel layout.Sizeable + SetBackgroundColor(color compat.AdaptiveColor) } type commandsComponent struct { @@ -38,6 +39,10 @@ func (c *commandsComponent) GetSize() (int, int) { return c.width, c.height } +func (c *commandsComponent) SetBackgroundColor(color compat.AdaptiveColor) { + c.background = &color +} + func (c *commandsComponent) Init() tea.Cmd { return nil } |
