diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-09 19:08:40 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-09 19:08:40 +0200 |
| commit | 83996ab9c3be89392d1914faa0c874d49bfd4c1c (patch) | |
| tree | 40e6e36837f6707c9fc4d98283ffc94dae7b6fbb /internal/client/ui/auth | |
| parent | cb72418324abfe6b133f0607b7269f5c4ec1f274 (diff) | |
Added background darkening when opening popups (certain things currently
don't get darkened)
Diffstat (limited to 'internal/client/ui/auth')
| -rw-r--r-- | internal/client/ui/auth/auth.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/client/ui/auth/auth.go b/internal/client/ui/auth/auth.go index 32fb232..25c773e 100644 --- a/internal/client/ui/auth/auth.go +++ b/internal/client/ui/auth/auth.go @@ -180,6 +180,10 @@ func (m Model) Init() tea.Cmd { } func (m Model) View() string { + if m.popup != nil { + colors.Darken() + } + var builder strings.Builder var title string @@ -260,6 +264,8 @@ func (m Model) View() string { ) if m.popup != nil { + colors.Restore() + popup := m.popup.View() x := (ui.Width - lipgloss.Width(popup)) / 2 y := (ui.Height - lipgloss.Height(popup)) / 2 |
