[gnome-control-center/add-shadow-to-icons: 2/5] search: Add shadow to application icons



commit 46ad6968901a51954ce720d56f8c3b1fcb8d028c
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Mar 12 13:44:54 2019 +0100

    search: Add shadow to application icons
    
    The new GNOME application icons need a shadow when placed on top
    of a light background.
    
    See https://gitlab.gnome.org/GNOME/Initiatives/issues/2

 panels/search/cc-search-panel.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/panels/search/cc-search-panel.c b/panels/search/cc-search-panel.c
index 9f0ae8510..9d2975052 100644
--- a/panels/search/cc-search-panel.c
+++ b/panels/search/cc-search-panel.c
@@ -457,6 +457,7 @@ search_panel_add_one_app_info (CcSearchPanel *self,
     g_object_ref (icon);
 
   w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DND);
+  gtk_style_context_add_class (gtk_widget_get_style_context (w), "lowres-icon");
   gtk_widget_show (w);
   gtk_icon_size_lookup (GTK_ICON_SIZE_DND, &width, &height);
   gtk_image_set_pixel_size (GTK_IMAGE (w), MAX (width, height));


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