fix(tui): use consistent severity colors between vulnerability components
This commit is contained in:
@@ -256,11 +256,11 @@ class VulnerabilityDetailScreen(ModalScreen): # type: ignore[misc]
|
|||||||
"""Modal screen to display vulnerability details."""
|
"""Modal screen to display vulnerability details."""
|
||||||
|
|
||||||
SEVERITY_COLORS: ClassVar[dict[str, str]] = {
|
SEVERITY_COLORS: ClassVar[dict[str, str]] = {
|
||||||
"critical": "#dc2626",
|
"critical": "#dc2626", # Red
|
||||||
"high": "#ea580c",
|
"high": "#ea580c", # Orange
|
||||||
"medium": "#d97706",
|
"medium": "#d97706", # Amber
|
||||||
"low": "#65a30d",
|
"low": "#22c55e", # Green
|
||||||
"info": "#0284c7",
|
"info": "#3b82f6", # Blue
|
||||||
}
|
}
|
||||||
|
|
||||||
FIELD_STYLE: ClassVar[str] = "bold #4ade80"
|
FIELD_STYLE: ClassVar[str] = "bold #4ade80"
|
||||||
@@ -578,7 +578,7 @@ class VulnerabilitiesPanel(VerticalScroll): # type: ignore[misc]
|
|||||||
SEVERITY_COLORS: ClassVar[dict[str, str]] = {
|
SEVERITY_COLORS: ClassVar[dict[str, str]] = {
|
||||||
"critical": "#dc2626", # Red
|
"critical": "#dc2626", # Red
|
||||||
"high": "#ea580c", # Orange
|
"high": "#ea580c", # Orange
|
||||||
"medium": "#eab308", # Yellow
|
"medium": "#d97706", # Amber
|
||||||
"low": "#22c55e", # Green
|
"low": "#22c55e", # Green
|
||||||
"info": "#3b82f6", # Blue
|
"info": "#3b82f6", # Blue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user