From cb72418324abfe6b133f0607b7269f5c4ec1f274 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 9 Feb 2025 18:46:53 +0200 Subject: Choice popup colors are now runtime-friendly --- internal/client/ui/choicepopup/choicepopup.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/client/ui/choicepopup/choicepopup.go') diff --git a/internal/client/ui/choicepopup/choicepopup.go b/internal/client/ui/choicepopup/choicepopup.go index b490693..3377f7a 100644 --- a/internal/client/ui/choicepopup/choicepopup.go +++ b/internal/client/ui/choicepopup/choicepopup.go @@ -60,7 +60,9 @@ func (m Model) View() string { paddingSize := m.Width - leftWidth - rightWidth assert.Assert(paddingSize >= 0, "there should be enough space for all choices", "remaining", paddingSize) - padding := strings.Repeat(" ", paddingSize) + padding := lipgloss.NewStyle(). + Background(m.Style.GetBackground()). + Render(strings.Repeat(" ", paddingSize)) choices := lipgloss.JoinHorizontal(lipgloss.Center, left, padding, right) styledChoices := m.ChoicesStyle.MaxWidth(m.Width).MaxHeight(m.Height).Render(choices) -- cgit v1.3.1