Tweak size of transport-icons for consistent height+baseline
authorRobin Gareus <robin@gareus.org>
Fri, 22 Dec 2017 23:57:06 +0000 (00:57 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 22 Dec 2017 23:57:06 +0000 (00:57 +0100)
libs/widgets/ardour_icon.cc

index 8b46714b810c3815d0674de7fab90ea2deb5affe..0980ad95f563a8bf8a92c707008525e89974be83 100644 (file)
@@ -603,9 +603,9 @@ static void icon_transport_stop (cairo_t *cr, const int width, const int height)
 {
        const int wh = std::min (width, height);
        cairo_rectangle (cr,
-                       (width - wh) * .5 + wh * .25,
-                       (height - wh) * .5 + wh * .25,
-                       wh * .5, wh * .5);
+                       (width - wh) * .5 + wh * .225,
+                       (height - wh) * .5 + wh * .225,
+                       wh * .55, wh * .55);
        VECTORICONSTROKEFILL(0.9); // small 'shine'
 }
 
@@ -693,19 +693,19 @@ static void icon_transport_loop (cairo_t *cr, const int width, const int height)
        const double y = height * .5;
        const double r = std::min (x, y);
 
-       cairo_arc          (cr, x, y, r * .62, 0, 2 * M_PI);
-       cairo_arc_negative (cr, x, y, r * .35, 2 * M_PI, 0);
+       cairo_arc          (cr, x, y, r * .58, 0, 2 * M_PI);
+       cairo_arc_negative (cr, x, y, r * .30, 2 * M_PI, 0);
 
-       VECTORICONSTROKEFILL(1.0);
+       VECTORICONSTROKEFILL (1.0);
 
 #define ARCARROW(rad, ang) \
        x + (rad) * sin ((ang) * 2.0 * M_PI), y + (rad) * cos ((ang) * 2.0 * M_PI)
 
-       cairo_move_to (cr, ARCARROW(r * .35, .72));
-       cairo_line_to (cr, ARCARROW(r * .15, .72));
-       cairo_line_to (cr, ARCARROW(r * .56, .60));
-       cairo_line_to (cr, ARCARROW(r * .75, .72));
-       cairo_line_to (cr, ARCARROW(r * .62, .72));
+       cairo_move_to (cr, ARCARROW(r * .30, .72));
+       cairo_line_to (cr, ARCARROW(r * .11, .72));
+       cairo_line_to (cr, ARCARROW(r * .55, .60));
+       cairo_line_to (cr, ARCARROW(r * .74, .72));
+       cairo_line_to (cr, ARCARROW(r * .58, .72));
 
        cairo_set_source_rgba (cr, 0, 0, 0, 1.0);
        cairo_stroke_preserve (cr);