The border below the frequency name in chat is now focus-colored if the

chat is focused
This commit is contained in:
2025-01-19 18:56:26 +02:00
parent abe7eabce9
commit b216b45e5b

View File

@@ -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"
}