Color message bar messages

This commit is contained in:
EnumDev committed 2026-05-19 17:12:54 +03:00
1 parent 5af962c6b2
commit 01bc6702a9
3 files changed
+11

No files matched your search

+9
View File
@@ -82,10 +82,19 @@ func drawMessageBar(window *Window) {
if lastMessage != nil && time.Since(time.UnixMilli(lastMessage.Timestamp)).Seconds() < 5 {
switch lastMessage.Urgency {
case TYPER_MESSAGE_INFO:
if Config.ColorMessageBar {
messageBarStyle = messageBarStyle.Foreground(CurrentStyle.SyntaxInfo)
}
messageToPrint = "[INFO] "
case TYPER_MESSAGE_WARNING:
if Config.ColorMessageBar {
messageBarStyle = messageBarStyle.Foreground(CurrentStyle.SyntaxWarning)
}
messageToPrint = "[WARNING] "
case TYPER_MESSAGE_ERROR:
if Config.ColorMessageBar {
messageBarStyle = messageBarStyle.Foreground(CurrentStyle.SyntaxError)
}
messageToPrint = "[ERROR] "
default:
messageToPrint = "[???] "