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/auth/auth.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'internal/client/ui/auth') diff --git a/internal/client/ui/auth/auth.go b/internal/client/ui/auth/auth.go index 2bfe5be..32fb232 100644 --- a/internal/client/ui/auth/auth.go +++ b/internal/client/ui/auth/auth.go @@ -65,9 +65,18 @@ ___] | |__] | \| | | \|`) return lipgloss.NewStyle().Background(colors.Background).Foreground(colors.White).PaddingLeft(1).Render("󰈉 ") } - popupStyle = func() lipgloss.Style { return lipgloss.NewStyle().Border(lipgloss.ThickBorder()) } - choiceSelectedStyle = func() lipgloss.Style { return lipgloss.NewStyle().Padding(0, 1).Margin(0, 1).Background(colors.Blue) } - choiceUnselectedStyle = func() lipgloss.Style { return lipgloss.NewStyle().Padding(0, 1).Margin(0, 1).Background(colors.Gray) } + popupStyle = func() lipgloss.Style { + return lipgloss.NewStyle(). + Background(colors.Background).Foreground(colors.White). + BorderBackground(colors.Background).BorderForeground(colors.White). + Border(lipgloss.ThickBorder()) + } + choiceSelectedStyle = func() lipgloss.Style { + return lipgloss.NewStyle().Padding(0, 1).Margin(0, 1).Background(colors.Blue).MarginBackground(colors.Background) + } + choiceUnselectedStyle = func() lipgloss.Style { + return lipgloss.NewStyle().Padding(0, 1).Margin(0, 1).Background(colors.Gray).MarginBackground(colors.Background) + } centerStyle = lipgloss.NewStyle().Width(authWidth).AlignHorizontal(lipgloss.Center) ) -- cgit v1.3.1