mirror of
https://github.com/sst/opencode.git
synced 2025-08-03 21:28:14 +00:00
fix(tui): help commands bg color
This commit is contained in:
parent
34b576d9b5
commit
04769d8a26
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ func (h *helpDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
|
||||
func (h *helpDialog) View() string {
|
||||
t := theme.CurrentTheme()
|
||||
h.commandsComponent.SetBackgroundColor(t.BackgroundElement())
|
||||
h.commandsComponent.SetBackgroundColor(t.BackgroundPanel())
|
||||
return h.viewport.View()
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ func NewHelpDialog(app *app.App) HelpDialog {
|
|||
return &helpDialog{
|
||||
app: app,
|
||||
commandsComponent: commandsComponent.New(app,
|
||||
commandsComponent.WithBackground(theme.CurrentTheme().BackgroundElement()),
|
||||
commandsComponent.WithBackground(theme.CurrentTheme().BackgroundPanel()),
|
||||
commandsComponent.WithShowAll(true),
|
||||
commandsComponent.WithKeybinds(true),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue