[gnome-control-center/wip/hughsie/hsi-fixes: 2/4] firmware-security: Set the HSI row colors correctly for higher HSI levels




commit 5954dffda42a360bb9fdbf9dd978a7cec1f8e25a
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jul 19 14:26:17 2022 +0100

    firmware-security: Set the HSI row colors correctly for higher HSI levels
    
    If we get HSI-2 then the HS1-2 row should be 'success', as should HSI-1.

 panels/firmware-security/cc-firmware-security-dialog.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/panels/firmware-security/cc-firmware-security-dialog.c 
b/panels/firmware-security/cc-firmware-security-dialog.c
index b693908d4..574c8a3e8 100644
--- a/panels/firmware-security/cc-firmware-security-dialog.c
+++ b/panels/firmware-security/cc-firmware-security-dialog.c
@@ -117,6 +117,7 @@ update_dialog (CcFirmwareSecurityDialog *self)
     case 2:
       adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_basic_row),
                                     "emblem-default-symbolic");
+      gtk_widget_add_css_class (self->firmware_security_dialog_min_row, "success-icon");
       gtk_widget_add_css_class (self->firmware_security_dialog_basic_row, "success-icon");
       set_dialog_item_layer1 (self,
                               "security-medium-symbolic",
@@ -130,6 +131,8 @@ update_dialog (CcFirmwareSecurityDialog *self)
     case 4:
       adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_extend_row),
                                     "emblem-default-symbolic");
+      gtk_widget_add_css_class (self->firmware_security_dialog_min_row, "success-icon");
+      gtk_widget_add_css_class (self->firmware_security_dialog_basic_row, "success-icon");
       gtk_widget_add_css_class (self->firmware_security_dialog_extend_row, "success-icon");
       set_dialog_item_layer1 (self,
                               "security-high-symbolic",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]