diff --git a/modules/computer.c b/modules/computer.c index 295a3ed42..605537f34 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -658,9 +658,16 @@ gchar *callback_security(void) continue; const gchar *icon = NULL; + if (g_strstr_len(contents, -1, "Not affected") ) + icon = "circle_green_check.svg"; + + if (g_str_has_prefix(contents, "Mitigation:") || + g_str_has_prefix(contents, "mitigation:")) + icon = "circle_yellow_exclaim.svg"; + if (g_strstr_len(contents, -1, "Vulnerable") || g_strstr_len(contents, -1, "vulnerable")) - icon = "dialog-warning.png"; + icon = "circle_red_x.svg"; info_group_add_fields(vulns, info_field(g_strdup(vuln), diff --git a/pixmaps/circle_green_check.svg b/pixmaps/circle_green_check.svg new file mode 100644 index 000000000..88f6b5672 --- /dev/null +++ b/pixmaps/circle_green_check.svg @@ -0,0 +1 @@ + diff --git a/pixmaps/circle_red_x.svg b/pixmaps/circle_red_x.svg new file mode 100644 index 000000000..05ae16003 --- /dev/null +++ b/pixmaps/circle_red_x.svg @@ -0,0 +1 @@ + diff --git a/pixmaps/circle_yellow_exclaim.svg b/pixmaps/circle_yellow_exclaim.svg new file mode 100644 index 000000000..40424f4c6 --- /dev/null +++ b/pixmaps/circle_yellow_exclaim.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/shell/callbacks.c b/shell/callbacks.c index c116c023f..cf245e8e0 100644 --- a/shell/callbacks.c +++ b/shell/callbacks.c @@ -181,6 +181,7 @@ void cb_about() _("Tango Project"), _("The GNOME Project"), _("VMWare, Inc. (USB icon from VMWare Workstation 6)"), + _("Roundicons (https://roundicons.com)"), NULL };