From 0ddfc5ce22656ea033e4cbd79e592dbb4caae560 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 1 Feb 2022 21:16:42 +0000 Subject: [PATCH] Make HostAudio panel 1hp thinner Signed-off-by: falkTX --- plugins/Cardinal/orig/HostAudio.svg | 154 ++++++++++++------------ plugins/Cardinal/res/HostAudio.svg | 178 +++++++++++++++------------- plugins/Cardinal/src/HostAudio.cpp | 6 +- src/template.vcv | 6 +- 4 files changed, 181 insertions(+), 163 deletions(-) diff --git a/plugins/Cardinal/orig/HostAudio.svg b/plugins/Cardinal/orig/HostAudio.svg index 6e5ae96..d2a4d33 100644 --- a/plugins/Cardinal/orig/HostAudio.svg +++ b/plugins/Cardinal/orig/HostAudio.svg @@ -9,9 +9,9 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="45.720001mm" + width="40.639999mm" height="128.5mm" - viewBox="0 0 45.720001 128.5" + viewBox="0 0 40.639999 128.5" version="1.1" id="svg4620" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" @@ -38,8 +38,8 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.979899" - inkscape:cx="-74.241329" - inkscape:cy="320.98082" + inkscape:cx="-58.078888" + inkscape:cy="340.67879" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="false" @@ -57,7 +57,7 @@ image/svg+xml - + @@ -67,86 +67,90 @@ id="layer1" transform="translate(0,-168.5)"> + id="g843" + transform="translate(-2.1252676)"> - - - + transform="matrix(6.342689,0,0,6.342689,5.4472535,175.6457)" + id="g5299" + style="fill-rule:evenodd"> + + + + + + + + + + + + + + + - - - - - - - - - - Host Audio diff --git a/plugins/Cardinal/res/HostAudio.svg b/plugins/Cardinal/res/HostAudio.svg index 9075a34..db323a2 100644 --- a/plugins/Cardinal/res/HostAudio.svg +++ b/plugins/Cardinal/res/HostAudio.svg @@ -9,9 +9,9 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="45.720001mm" + width="40.639999mm" height="128.5mm" - viewBox="0 0 45.720001 128.5" + viewBox="0 0 40.639999 128.5" version="1.1" id="svg4620" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" @@ -38,8 +38,8 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.979899" - inkscape:cx="-74.241329" - inkscape:cy="320.98082" + inkscape:cx="44.95667" + inkscape:cy="315.93006" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="false" @@ -67,117 +67,131 @@ id="layer1" transform="translate(0,-168.5)"> + id="g854" + transform="translate(-2.1252676)"> - - - + transform="matrix(6.342689,0,0,6.342689,5.4472535,175.6457)" + id="g5299" + style="fill-rule:evenodd"> + + + + + + + + + + + + + + + - - - - - - - - - - + id="text845" + transform="translate(-2.5400006)"> + id="path829" + inkscape:connector-curvature="0" /> + id="path831" + inkscape:connector-curvature="0" /> + id="path833" + inkscape:connector-curvature="0" /> + id="path835" + inkscape:connector-curvature="0" /> + id="path837" + inkscape:connector-curvature="0" /> + id="path839" + inkscape:connector-curvature="0" /> + id="path841" + inkscape:connector-curvature="0" /> + id="path843" + inkscape:connector-curvature="0" /> + id="path845" + inkscape:connector-curvature="0" /> diff --git a/plugins/Cardinal/src/HostAudio.cpp b/plugins/Cardinal/src/HostAudio.cpp index da9bd9d..2d8e4fe 100644 --- a/plugins/Cardinal/src/HostAudio.cpp +++ b/plugins/Cardinal/src/HostAudio.cpp @@ -472,7 +472,7 @@ struct NanoMeter : Widget { template struct HostAudioWidget : ModuleWidget { static constexpr const float startX_In = 14.0f; - static constexpr const float startX_Out = 96.0f; + static constexpr const float startX_Out = 81.0f; static constexpr const float startY = 74.0f; static constexpr const float padding = 29.0f; static constexpr const float middleX = startX_In + (startX_Out - startX_In) * 0.5f + padding * 0.35f; @@ -501,7 +501,7 @@ struct HostAudioWidget : ModuleWidget { addParam(createParamCentered(Vec(middleX, 310.0f), m, 0)); NanoMeter* const meter = new NanoMeter(m); - meter->box.pos = Vec(startX_In + padding - 4.0f, startY + padding * 2); + meter->box.pos = Vec(middleX - padding + 2.75f, startY + padding * 2); meter->box.size = Vec(padding * 2.0f - 4.0f, 136.0f); addChild(meter); } @@ -534,7 +534,7 @@ struct HostAudioWidget : ModuleWidget { if (numIO == 2) { - drawTextLine(args.vg, 0, "Left/Mono"); + drawTextLine(args.vg, 0, "Left/M"); drawTextLine(args.vg, 1, "Right"); } else diff --git a/src/template.vcv b/src/template.vcv index 20cc112..0ddaf29 100644 --- a/src/template.vcv +++ b/src/template.vcv @@ -31,7 +31,7 @@ "leftModuleId": 1, "rightModuleId": 3, "pos": [ - 5, + 8, 0 ] }, @@ -44,7 +44,7 @@ "leftModuleId": 2, "rightModuleId": 4, "pos": [ - 18, + 17, 0 ] }, @@ -56,7 +56,7 @@ "params": [], "leftModuleId": 3, "pos": [ - 26, + 25, 0 ] }