diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-06-08 11:56:31 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-06-08 11:56:31 +0300 |
| commit | bb6b93eefdb6b3044f6e44ac7b16b3257d5021cb (patch) | |
| tree | 30ea1f57005255233aeb5a3d80557ad5e0cb50db /internal/client/ui | |
| parent | 904134789e71d2e260fd1ae2acd7a08a3dd8a605 (diff) | |
Fixed selected signal not rendering notifications with the proper
background
Diffstat (limited to 'internal/client/ui')
| -rw-r--r-- | internal/client/ui/core/signallist/signallist.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/client/ui/core/signallist/signallist.go b/internal/client/ui/core/signallist/signallist.go index 29888ba..c8c27a2 100644 --- a/internal/client/ui/core/signallist/signallist.go +++ b/internal/client/ui/core/signallist/signallist.go @@ -87,16 +87,18 @@ func (m Model) View() string { pings, _ := state.MergedNotification(signal) if pings != 0 { notif = notifs[min(pings, 10)-1] - notif = lipgloss.NewStyle().Inline(true). - Foreground(colors.Red).Background(colors.BackgroundDim). - Render(notif) maxUserWidth -= notifWidth } if m.index == m.base+i { signalStyle = signalStyle.Background(colors.BackgroundHighlight) userStyle = userStyle.Background(colors.BackgroundHighlight) - notif = lipgloss.NewStyle().Background(colors.BackgroundHighlight). + notif = lipgloss.NewStyle().Inline(true). + Foreground(colors.Red).Background(colors.BackgroundHighlight). + Render(notif) + } else { + notif = lipgloss.NewStyle().Inline(true). + Foreground(colors.Red).Background(colors.BackgroundDim). Render(notif) } |
