diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-01-19 18:56:26 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-01-19 18:56:26 +0200 |
| commit | b216b45e5bfd1be9622b3275a8ea64cf745e226c (patch) | |
| tree | 5ed039fee0d9a33454523a6635a73f00f2362b95 /internal | |
| parent | abe7eabce9b359c6150d65e291a9fc460196bfba (diff) | |
The border below the frequency name in chat is now focus-colored if the
chat is focused
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/client/ui/core/chat/chat.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go index 80ccacc..960d563 100644 --- a/internal/client/ui/core/chat/chat.go +++ b/internal/client/ui/core/chat/chat.go @@ -889,6 +889,11 @@ func (m *Model) renderFrequencyName() string { frequency := state.State.Frequencies[*networkId][m.frequencyIndex] color := lipgloss.Color(frequency.HexColor) - return FrequencyNameStyle.Width(m.width).Foreground(color). - Render(frequency.Name) + "\n" + frequencyNameStyle := FrequencyNameStyle. + Width(m.width).Foreground(color) + if m.focus { + frequencyNameStyle = frequencyNameStyle.BorderForeground(colors.Focus) + } + + return frequencyNameStyle.Render(frequency.Name) + "\n" } |
