From b8d1e8a814067e0f8dfedc1184df5e48e31d179a Mon Sep 17 00:00:00 2001 From: Exalm Date: Tue, 22 Aug 2017 19:03:01 +0500 Subject: [PATCH] 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 c9d551bba..ed9489525 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 5ebc62117..1dae0e84c 100644 --- a/shell/panel-list.ui +++ b/shell/panel-list.ui @@ -29,7 +29,7 @@ False applications-system-symbolic @@ -45,6 +45,9 @@ True Devices 0 + False @@ -85,7 +88,7 @@ False applications-system-symbolic @@ -101,6 +104,9 @@ True Details 0 + False