summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/commands
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tui/internal/components/commands')
-rw-r--r--packages/tui/internal/components/commands/commands.go5
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
}