mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
fix(tui): visual tweaks to themes
This commit is contained in:
@@ -89,8 +89,8 @@ func (t *themeDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
|
||||
if item, newIdx := t.list.GetSelectedItem(); newIdx >= 0 && newIdx != prevIdx {
|
||||
theme.SetTheme(item.name)
|
||||
return t, util.CmdHandler(ThemeSelectedMsg{ThemeName: item.name})
|
||||
}
|
||||
|
||||
return t, cmd
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ func (m *Modal) Render(contentView string, background string) string {
|
||||
titleLine := m.title + spacer + escText
|
||||
titleLine = titleStyle.Render(titleLine)
|
||||
|
||||
finalContent = strings.Join([]string{titleLine, contentView}, "\n") + "\n"
|
||||
finalContent = strings.Join([]string{titleLine, "", contentView}, "\n")
|
||||
} else {
|
||||
finalContent = contentView
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user