[gnome-control-center/wip/new-design: 1/7] First commit
- From: Kate Hsuan <khsuan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/new-design: 1/7] First commit
- Date: Mon, 1 Aug 2022 08:52:49 +0000 (UTC)
commit e0b7dcac673ecae007e8c6cd24d3be33b4e1edbc
Author: Kate Hsuan <hpa redhat com>
Date: Tue Jul 26 17:20:50 2022 +0800
First commit
.../firmware-security/cc-firmware-security-panel.c | 2 +-
.../cc-firmware-security-panel.ui | 34 +++++++++++++++++++++-
panels/firmware-security/security-level.css | 22 ++++++++++++++
subprojects/gvc | 2 +-
4 files changed, 57 insertions(+), 3 deletions(-)
---
diff --git a/panels/firmware-security/cc-firmware-security-panel.c
b/panels/firmware-security/cc-firmware-security-panel.c
index 0a3db4002..ce30ad40e 100644
--- a/panels/firmware-security/cc-firmware-security-panel.c
+++ b/panels/firmware-security/cc-firmware-security-panel.c
@@ -637,7 +637,7 @@ cc_firmware_security_panel_init (CcfirmwareSecurityPanel *self)
self->hsi1_dict = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)
fu_security_attr_free);
self->hsi2_dict = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)
fu_security_attr_free);
- self->hsi3_dict = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)
fu_security_attr_free);
+s self->hsi3_dict = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)
fu_security_attr_free);
self->hsi4_dict = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)
fu_security_attr_free);
load_custom_css ("/org/gnome/control-center/firmware-security/security-level.css");
diff --git a/panels/firmware-security/cc-firmware-security-panel.ui
b/panels/firmware-security/cc-firmware-security-panel.ui
index 359e39477..259c2d6a8 100644
--- a/panels/firmware-security/cc-firmware-security-panel.ui
+++ b/panels/firmware-security/cc-firmware-security-panel.ui
@@ -41,7 +41,39 @@
</style>
</object>
</child>
+
<child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+
+
+
+ <child>
+ <object class="GtkLabel" >
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="vexpand">True</property>
+ <property name="justify">center</property>
+
+ <property name="label">1</property>
+ <property name="margin-bottom">6</property>
+ <style>
+ <class name="hsi-level-font"/>
+ <class name="hsi1"/>
+ </style>
+ </object>
+ </child>
+
+ <style>
+ <class name="hsi-level-box"/>
+ <class name="level1"/>
+ </style>
+
+ </object>
+ </child>
+ <child>
<object class="GtkLabel" id="hsi_label">
<property name="justify">center</property>
<property name="wrap">True</property>
@@ -87,7 +119,7 @@
<property name="pixel-size">32</property>
<property name="halign">center</property>
<property name="valign">center</property>
- <property name="icon-name">system-reboot-symbolic</property>
+ <property name="icon-name">channel-insecure</property>
<property name="margin-bottom">6</property>
<style>
<class name="security-level-icon"/>
diff --git a/panels/firmware-security/security-level.css b/panels/firmware-security/security-level.css
index 33be08778..861bf8337 100644
--- a/panels/firmware-security/security-level.css
+++ b/panels/firmware-security/security-level.css
@@ -1,3 +1,25 @@
+.hsi-level-box {
+ border-radius: 9999px;
+ min-width: 64px;
+ min-height: 64px;
+
+}
+
+.hsi-level-box.level1 {
+ background-color: alpha(@success_color, .25);
+}
+
+.hsi-level-font {
+ font-size: 32px;
+ font-weight: bold;
+}
+
+.hsi-level-font.hsi1 {
+ color: @success_color;
+}
+
+
+
.security-level-icon {
border-radius: 9999px;
min-width: 64px;
diff --git a/subprojects/gvc b/subprojects/gvc
index 8e7a5a4c3..7a621180b 160000
--- a/subprojects/gvc
+++ b/subprojects/gvc
@@ -1 +1 @@
-Subproject commit 8e7a5a4c3e51007ce6579292642517e3d3eb9c50
+Subproject commit 7a621180b46421e356b33972e3446775a504139c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]