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

This commit is contained in:
0xallam
2026-01-08 11:54:31 -08:00
committed by Ahmed Allam
parent 47e07c8a04
commit a1d7c0f810

View File

@@ -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
}