summaryrefslogtreecommitdiff
path: root/libs/widgets
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-12-22 20:44:16 +0100
committerRobin Gareus <robin@gareus.org>2017-12-22 22:15:50 +0100
commitf40e2375cbc50a1c69b69a295dbc9aa42d60787d (patch)
treefc3d250a8f1b76390ce01aab3d6cf7675d9d55fb /libs/widgets
parent22c497b62d30157a367e5ae90e48d13f036b9bae (diff)
Tweak icons (for non-square layout)
Diffstat (limited to 'libs/widgets')
-rw-r--r--libs/widgets/ardour_icon.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/libs/widgets/ardour_icon.cc b/libs/widgets/ardour_icon.cc
index b05ed63bcb..8b46714b81 100644
--- a/libs/widgets/ardour_icon.cc
+++ b/libs/widgets/ardour_icon.cc
@@ -614,7 +614,7 @@ static void icon_transport_play (cairo_t *cr, const int width, const int height)
{
const int wh = std::min (width, height) * .5;
const double y = height * .5;
- const double x = width - wh;
+ const double x = width * .5;
const double tri = ceil (.577 * wh); // 1/sqrt(3)
@@ -631,13 +631,14 @@ static void icon_transport_panic (cairo_t *cr, const int width, const int height
{
const int wh = ceil (std::min (width, height) * .1) - .5;
const double xc = rint (width * .5);
- const double yh = height;
+ const double yh = std::min (width, height);
+ const double y0 = (height - yh) * .5;
cairo_rectangle (cr,
- xc - wh, yh *.19,
- wh * 2, yh *.41);
+ xc - wh, y0 + yh *.12,
+ wh * 2, yh *.48);
VECTORICONSTROKEFILL(0.9);
- cairo_arc (cr, xc, yh *.75, wh, 0, 2 * M_PI);
+ cairo_arc (cr, xc, y0 + yh *.78, wh, 0, 2 * M_PI);
VECTORICONSTROKEFILL(0.9);
}
@@ -649,7 +650,7 @@ static void icon_transport_ck (cairo_t *cr,
// small play triangle
int wh = std::min (width, height);
const double y = height * .5;
- const double x = width - wh * .5;
+ const double x = width * .5;
wh *= .18;
const double tri = ceil (.577 * wh * 2); // 1/sqrt(3)