From f324399feb221f081b9975793ad2f5efdd6c0097 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 3 Mar 2023 16:17:37 +0200 Subject: [PATCH] GoggaTransform - `Level.WARN` is now yellow - Debugging color is now pink --- source/gogga/transform.d | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/gogga/transform.d b/source/gogga/transform.d index 239d1c2..af36979 100644 --- a/source/gogga/transform.d +++ b/source/gogga/transform.d @@ -130,16 +130,21 @@ private byte[] debugColor(string text, Level level) { messageBytes = cast(byte[])[27, '[','3','2','m']; } - /* If WARNING, set warning */ + /* If WARN, set warning */ else if(level == Level.WARN) { - messageBytes = cast(byte[])[27, '[','3','5','m']; /* TODO: FInd yllow */ + messageBytes = cast(byte[])[27, '[','3','1', ';', '9', '3', 'm']; } /* If ERROR, set error */ else if(level == Level.ERROR) { messageBytes = cast(byte[])[27, '[','3','1','m']; } + /* If DEBUG, set debug */ + else + { + messageBytes = cast(byte[])[27, '[','3','5','m']; + } /* Add the message */ messageBytes ~= cast(byte[])text;