File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ const (
4040 UserHighlightColor = "#6441A5" //Twitch purple
4141)
4242
43+ var (
44+ UserHighLightStyle = lipgloss .NewStyle ().Bold (true ).Background (lipgloss .Color (UserHighlightColor ))
45+ )
46+
4347var _ terminal.Twitch = IRCService {}
4448
4549func NewIRCService (displayName string , channel string , irc IRC ) IRCService {
@@ -62,7 +66,7 @@ func (c IRCService) GetMessageSource() <-chan types.Message {
6266
6367 styled .Name = lipgloss .NewStyle ().Bold (true ).Foreground (lipgloss .Color (styled .Color )).Render (styled .Name )
6468 if incoming .Name == c .displayName {
65- styled .Name = lipgloss . NewStyle (). Bold ( true ). Background ( lipgloss . Color ( UserHighlightColor )) .Render (c .displayName )
69+ styled .Name = UserHighLightStyle .Render (c .displayName )
6670 }
6771
6872 c .upstream <- styled
You can’t perform that action at this time.
0 commit comments