Update menu notification handling

This commit is contained in:
thePR0M3TH3AN committed 2025-07-14 12:53:53 -04:00
1 parent af1a33b904
commit 5bf2bc458c
3 files changed
+41 -13

No files matched your search

+3 -2
View File
@@ -20,7 +20,7 @@ _COLOR_MAP = {
"index": "yellow",
"menu": "cyan",
"stats": "green",
"info": "cyan",
"info": "white",
"warning": "yellow",
"error": "red",
"default": "white",
@@ -32,4 +32,5 @@ def color_text(text: str, category: str = "default") -> str:
color = _COLOR_MAP.get(category, "white")
if color == "orange":
return _apply_orange(text)
return colored(text, color)
attrs = ["bold"] if category in {"info", "warning", "error"} else None
return colored(text, color, attrs=attrs)