mirror of
https://github.com/Kyren223/eko.git
synced 2026-07-20 10:31:04 +00:00
The border below the frequency name in chat is now focus-colored if the
chat is focused
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user