Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

fix(tui): use consistent severity colors between vulnerability components

0xallama1d7c0f8104e
diff --git a/strix/interface/tui.py b/strix/interface/tui.py
index e026a05c..4e045d1a 100644
--- a/strix/interface/tui.py
+++ b/strix/interface/tui.py
@@ -256,11 +256,11 @@ class VulnerabilityDetailScreen(ModalScreen): # type: ignore[misc]
"""Modal screen to display vulnerability details."""
SEVERITY_COLORS: ClassVar[dict[str, str]] = {
- "critical": "#dc2626",
- "high": "#ea580c",
- "medium": "#d97706",
- "low": "#65a30d",
- "info": "#0284c7",
+ "critical": "#dc2626", # Red
+ "high": "#ea580c", # Orange
+ "medium": "#d97706", # Amber
+ "low": "#22c55e", # Green
+ "info": "#3b82f6", # Blue
}
FIELD_STYLE: ClassVar[str] = "bold #4ade80"
@@ -578,7 +578,7 @@ class VulnerabilitiesPanel(VerticalScroll): # type: ignore[misc]
SEVERITY_COLORS: ClassVar[dict[str, str]] = {
"critical": "#dc2626", # Red
"high": "#ea580c", # Orange
- "medium": "#eab308", # Yellow
+ "medium": "#d97706", # Amber
"low": "#22c55e", # Green
"info": "#3b82f6", # Blue
}