[gnome-photos] utils: Set the emblem size to 16px, surrounded by a 4px margin



commit 2511cc5bb1ab5e079bad156c951297927fd3d97c
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Apr 10 14:42:09 2013 +0200

    utils: Set the emblem size to 16px, surrounded by a 4px margin
    
    The current emblems are too big and obstruct too much of the photos.

 src/photos-utils.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-utils.c b/src/photos-utils.c
index a8345a5..bae94e8 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -162,17 +162,14 @@ photos_utils_create_symbolic_icon (const gchar *name, gint base_size)
   cairo_surface_t *surface;
   cairo_t *cr;
   gchar *symbolic_name;
-  const gint bg_min_size = 20;
+  const gint bg_size = 24;
   const gint emblem_margin = 4;
-  const gint emblem_min_size = 8;
-  gint bg_size;
   gint emblem_pos;
   gint emblem_size;
   gint total_size;
 
   total_size = base_size / 2;
-  bg_size = MAX (total_size / 2, bg_min_size);
-  emblem_size = MAX (bg_size - emblem_margin * 2, emblem_min_size);
+  emblem_size = bg_size - emblem_margin * 2;
 
   surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, total_size, total_size);
   cr = cairo_create (surface);


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