mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-30 17:32:04 +00:00
Update menu notification handling
This commit is contained in:
1 parent
af1a33b904
commit
5bf2bc458c
3 files changed
+41
-13
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user