[gnome-control-center/add-shadow-to-icons: 3/5] notifications: 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: 3/5] notifications: Add shadow to application icons
- Date: Tue, 12 Mar 2019 12:57:01 +0000 (UTC)
commit 0c9b1e40bb885993f2fb271b7a8a905058a433f2
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Mar 12 13:47:01 2019 +0100
notifications: 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/notifications/cc-notifications-panel.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index 8a30986d2..85212be6c 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -316,6 +316,7 @@ add_application (CcNotificationsPanel *panel,
gtk_container_add (GTK_CONTAINER (row), box);
w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
+ 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, &size, NULL);
gtk_image_set_pixel_size (GTK_IMAGE (w), size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]