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 ++++++---- terminology.md | 8 ++++++++ 2 files changed, 14 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) } diff --git a/terminology.md b/terminology.md index 299f2e2..50d4cfa 100644 --- a/terminology.md +++ b/terminology.md @@ -4,4 +4,12 @@ TODO ## TODO +ID - A snowflake ID, a snowflake ID is a unique identifier used across the client and server, it embeds metadata including the date it was generated which can be retrieved for display purposes. + +Receiver ID - usually refers to the "other" person's ID in a 1:1 messaging, but can also refer to the literal `receiver_id` SQL field on the `messages` table which may be either the "other" person, or the user itself. + +Frequency ID + Chat ID - A snowflake ID that refers to either a frequency ID or a receiver ID + +Signal - A currently open chat between 2 individual users ("DM") -- cgit v1.3.1