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 {
|
if item, newIdx := t.list.GetSelectedItem(); newIdx >= 0 && newIdx != prevIdx {
|
||||||
theme.SetTheme(item.name)
|
theme.SetTheme(item.name)
|
||||||
|
return t, util.CmdHandler(ThemeSelectedMsg{ThemeName: item.name})
|
||||||
}
|
}
|
||||||
|
|
||||||
return t, cmd
|
return t, cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ func (m *Modal) Render(contentView string, background string) string {
|
|||||||
titleLine := m.title + spacer + escText
|
titleLine := m.title + spacer + escText
|
||||||
titleLine = titleStyle.Render(titleLine)
|
titleLine = titleStyle.Render(titleLine)
|
||||||
|
|
||||||
finalContent = strings.Join([]string{titleLine, contentView}, "\n") + "\n"
|
finalContent = strings.Join([]string{titleLine, "", contentView}, "\n")
|
||||||
} else {
|
} else {
|
||||||
finalContent = contentView
|
finalContent = contentView
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user