From bb6b93eefdb6b3044f6e44ac7b16b3257d5021cb Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 8 Jun 2025 11:56:31 +0300 Subject: Fixed selected signal not rendering notifications with the proper background --- internal/client/ui/core/signallist/signallist.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'internal/client') 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) } -- cgit v1.3.1