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
This commit is contained in:
parent
535c5d1fa2
commit
b8d1e8a814
2 changed files with 10 additions and 3 deletions
|
@ -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 */
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue