[snappy] ui: adjust rounded edges



commit 273db3a21e7a520f5035891fbf2202753ac860d2
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Tue Apr 9 17:40:35 2013 -0400

    ui: adjust rounded edges

 src/user_interface.c |    4 ++--
 src/user_interface.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index 885df12..e13dd43 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -91,7 +91,7 @@ draw_background (ClutterCanvas * canvas, cairo_t * cr, int surface_width,
   width = surface_width - 2.0;
   height = surface_height - 2.0;
   aspect = 1.0;                 // aspect ratio
-  corner_radius = height / 10.0;        // and corner curvature radius
+  corner_radius = height / 15.0;        // and corner curvature radius
 
   radius = corner_radius / aspect;
   degrees = M_PI / 180.0;
@@ -149,7 +149,7 @@ draw_progressbar (ClutterCanvas * canvas, cairo_t * cr, int surface_width,
   width = surface_width - 2.0;
   height = surface_height - 2.0;
   aspect = 1.0;                 // aspect ratio
-  corner_radius = height / 5.0;        // and corner curvature radius
+  corner_radius = height / 4.0;        // and corner curvature radius
 
   radius = corner_radius / aspect;
   degrees = M_PI / 180.0;
diff --git a/src/user_interface.h b/src/user_interface.h
index 7c279fa..f8ce3a0 100644
--- a/src/user_interface.h
+++ b/src/user_interface.h
@@ -55,7 +55,7 @@
 #define POS_RATIO 0.1f
 #define VOLUME_ICON_RATIO 0.2f
 #define VOLUME_WIDTH_RATIO 0.65f
-#define VOLUME_HEIGHT_RATIO 0.05f
+#define VOLUME_HEIGHT_RATIO 0.08f
 
 #define TITLE_LENGTH 40
 


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