[gnome-control-center] panel-list: Update icon and label classes



commit b8d1e8a814067e0f8dfedc1184df5e48e31d179a
Author: Exalm <exalm7659 gmail com>
Date:   Tue Aug 22 19:03:01 2017 +0500

    panel-list: Update icon and label classes
    
    Set icon class to sidebar-icon, and label class to
    sidebar-label. This makes it more consistent with
    places sidebar in Nautilus and GtkFileChooser.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786612

 shell/cc-panel-list.c |    3 ++-
 shell/panel-list.ui   |   10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c
index c9d551b..ed94895 100644
--- a/shell/cc-panel-list.c
+++ b/shell/cc-panel-list.c
@@ -181,7 +181,7 @@ row_data_new (CcPanelCategory  category,
 
   /* Icon */
   image = gtk_image_new_from_icon_name (icon, GTK_ICON_SIZE_BUTTON);
-  gtk_style_context_add_class (gtk_widget_get_style_context (image), "dim-label");
+  gtk_style_context_add_class (gtk_widget_get_style_context (image), "sidebar-icon");
 
   gtk_grid_attach (GTK_GRID (grid), image, 0, 0, 1, 1);
 
@@ -194,6 +194,7 @@ row_data_new (CcPanelCategory  category,
                         "xalign", 0.0,
                         "hexpand", TRUE,
                         NULL);
+  gtk_style_context_add_class (gtk_widget_get_style_context (label), "sidebar-label");
   gtk_grid_attach (GTK_GRID (grid), label, 1, 0, 1, 1);
 
   /* Description label */
diff --git a/shell/panel-list.ui b/shell/panel-list.ui
index 5ebc621..1dae0e8 100644
--- a/shell/panel-list.ui
+++ b/shell/panel-list.ui
@@ -29,7 +29,7 @@
                     <property name="can_focus">False</property>
                     <property name="icon_name">applications-system-symbolic</property>
                     <style>
-                      <class name="dim-label" />
+                      <class name="sidebar-icon" />
                     </style>
                   </object>
                   <packing>
@@ -45,6 +45,9 @@
                     <property name="hexpand">True</property>
                     <property name="label" translatable="yes">Devices</property>
                     <property name="xalign">0</property>
+                    <style>
+                      <class name="sidebar-label" />
+                    </style>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -85,7 +88,7 @@
                     <property name="can_focus">False</property>
                     <property name="icon_name">applications-system-symbolic</property>
                     <style>
-                      <class name="dim-label" />
+                      <class name="sidebar-icon" />
                     </style>
                   </object>
                   <packing>
@@ -101,6 +104,9 @@
                     <property name="hexpand">True</property>
                     <property name="label" translatable="yes">Details</property>
                     <property name="xalign">0</property>
+                    <style>
+                      <class name="sidebar-label" />
+                    </style>
                   </object>
                   <packing>
                     <property name="expand">False</property>


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