diff options
author | Robin Gareus <robin@gareus.org> | 2017-12-23 00:57:06 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-12-23 00:57:06 +0100 |
commit | 1a602cbfa285f7c03f2b48c34e8ddce6753f34a9 (patch) | |
tree | 61ed7ec6ac1a614e263652fd8223c3746dbd274a /libs/widgets | |
parent | ba05255247296c93e9950b1e71d58ae6dd9fc8e3 (diff) |
Tweak size of transport-icons for consistent height+baseline
Diffstat (limited to 'libs/widgets')
-rw-r--r-- | libs/widgets/ardour_icon.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libs/widgets/ardour_icon.cc b/libs/widgets/ardour_icon.cc index 8b46714b81..0980ad95f5 100644 --- a/libs/widgets/ardour_icon.cc +++ b/libs/widgets/ardour_icon.cc @@ -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); |