diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-09 18:46:53 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-09 18:46:53 +0200 |
| commit | cb72418324abfe6b133f0607b7269f5c4ec1f274 (patch) | |
| tree | 651025fb142752dcb6fad234437b5b0332c16f33 /internal/client/ui/choicepopup/choicepopup.go | |
| parent | 4b4b09dee11aec2ca2b3b03d46a66e153ef4036a (diff) | |
Choice popup colors are now runtime-friendly
Diffstat (limited to 'internal/client/ui/choicepopup/choicepopup.go')
| -rw-r--r-- | internal/client/ui/choicepopup/choicepopup.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
