[gnome-control-center] notifications: Shrink application icons



commit e923c5d5c717c96c010451269aa6d0ebd31a38ba
Author: Marek Kasik <mkasik redhat com>
Date:   Fri Jan 9 15:43:16 2015 +0100

    notifications: Shrink application icons
    
    Shrink application icons and add some margin to them so
    the overall size is the same.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742522

 panels/notifications/cc-notifications-panel.c |    4 +++-
 panels/notifications/notifications.ui         |    8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index 75dd712..7a176ae 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -276,9 +276,11 @@ add_application (CcNotificationsPanel *panel,
   gtk_container_add (GTK_CONTAINER (row), box);
 
   w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
-  gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &size, NULL);
+  gtk_icon_size_lookup (GTK_ICON_SIZE_DND, &size, NULL);
   gtk_image_set_pixel_size (GTK_IMAGE (w), size);
   gtk_widget_set_margin_start (w, 12);
+  gtk_widget_set_margin_top (w, 8);
+  gtk_widget_set_margin_bottom (w, 8);
   gtk_container_add (GTK_CONTAINER (box), w);
   g_object_unref (icon);
 
diff --git a/panels/notifications/notifications.ui b/panels/notifications/notifications.ui
index d03294b..67af1e1 100644
--- a/panels/notifications/notifications.ui
+++ b/panels/notifications/notifications.ui
@@ -49,11 +49,13 @@
                             <property name="valign">center</property>
                             <child>
                               <object class="GtkLabel" id="ccnotify-label-banners">
-                                <property name="height_request">48</property>
+                                <property name="height_request">32</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="halign">start</property>
                                 <property name="margin_start">12</property>
+                                <property name="margin_top">8</property>
+                                <property name="margin_bottom">8</property>
                                 <property name="hexpand">True</property>
                                 <property name="xalign">0</property>
                                 <property name="label" translatable="yes">Notification Banners</property>
@@ -96,11 +98,13 @@
                             <property name="valign">center</property>
                             <child>
                               <object class="GtkLabel" id="ccnotify-label-lock-screen">
-                                <property name="height_request">48</property>
+                                <property name="height_request">32</property>
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="halign">start</property>
                                 <property name="margin_start">12</property>
+                                <property name="margin_top">8</property>
+                                <property name="margin_bottom">8</property>
                                 <property name="hexpand">True</property>
                                 <property name="xalign">0</property>
                                 <property name="label" translatable="yes">Lock Screen 
Notifications</property>


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