[gnome-control-center/add-shadow-to-icons: 2/5] search: Add shadow to application icons
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/add-shadow-to-icons: 2/5] search: Add shadow to application icons
- Date: Tue, 12 Mar 2019 12:56:56 +0000 (UTC)
commit eb22b00f6d5876bdbc623359c216d283ddd18688
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..02ed0d2b2 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), "icon-dropshadow");
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]