perf(messages_list): optimize color conversion by eliminating string allocation

This commit is contained in:
ayn2op 2025-12-16 22:53:20 -05:00
parent c750071e59
commit 0f8d561a23

View file

@ -159,7 +159,7 @@ func (ml *messagesList) drawAuthor(w io.Writer, message discord.Message) {
return r
})
if ok {
foreground = tcell.GetColor(color.String())
foreground = tcell.NewHexColor(int32(color))
}
}
}