diff --git a/include/componentlibrary.hpp b/include/componentlibrary.hpp index b8d2125b..264d3405 100644 --- a/include/componentlibrary.hpp +++ b/include/componentlibrary.hpp @@ -609,16 +609,21 @@ struct Rogan1PWhite : Rogan { struct SynthTechAlco : app::SvgKnob { + widget::SvgWidget* bg; + widget::SvgWidget* fg; + SynthTechAlco() { + bg = new widget::SvgWidget; + fb->addChildBelow(bg, tw); + + fg = new widget::SvgWidget; + fb->addChildAbove(fg, tw); + minAngle = -0.82 * M_PI; maxAngle = 0.82 * M_PI; setSvg(Svg::load(asset::system("res/ComponentLibrary/SynthTechAlco.svg"))); - // Add cap - widget::FramebufferWidget* capFb = new widget::FramebufferWidget; - widget::SvgWidget* cap = new widget::SvgWidget; - cap->setSvg(Svg::load(asset::system("res/ComponentLibrary/SynthTechAlco_cap.svg"))); - capFb->addChild(cap); - addChild(capFb); + bg->setSvg(Svg::load(asset::system("res/ComponentLibrary/SynthTechAlco-bg.svg"))); + fg->setSvg(Svg::load(asset::system("res/ComponentLibrary/SynthTechAlco-fg.svg"))); } }; diff --git a/res/ComponentLibrary/CL1362.svg b/res/ComponentLibrary/CL1362.svg index ac39ef0f..435cf3b0 100644 --- a/res/ComponentLibrary/CL1362.svg +++ b/res/ComponentLibrary/CL1362.svg @@ -1,443 +1,64 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/NKK_0.svg b/res/ComponentLibrary/NKK_0.svg index 8cc3f8e9..5dc80ed0 100644 --- a/res/ComponentLibrary/NKK_0.svg +++ b/res/ComponentLibrary/NKK_0.svg @@ -1,92 +1,127 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/NKK_1.svg b/res/ComponentLibrary/NKK_1.svg index 769c8a4e..bd652586 100644 --- a/res/ComponentLibrary/NKK_1.svg +++ b/res/ComponentLibrary/NKK_1.svg @@ -1,93 +1,102 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/NKK_2.svg b/res/ComponentLibrary/NKK_2.svg index 2350fc68..b8f93cf1 100644 --- a/res/ComponentLibrary/NKK_2.svg +++ b/res/ComponentLibrary/NKK_2.svg @@ -1,92 +1,122 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/PJ3410.svg b/res/ComponentLibrary/PJ3410.svg index bb7be8a3..9ab9c113 100644 --- a/res/ComponentLibrary/PJ3410.svg +++ b/res/ComponentLibrary/PJ3410.svg @@ -1,383 +1,61 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/SynthTechAlco-bg.svg b/res/ComponentLibrary/SynthTechAlco-bg.svg new file mode 100644 index 00000000..6e9a583b --- /dev/null +++ b/res/ComponentLibrary/SynthTechAlco-bg.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/SynthTechAlco_cap.svg b/res/ComponentLibrary/SynthTechAlco-fg.svg similarity index 100% rename from res/ComponentLibrary/SynthTechAlco_cap.svg rename to res/ComponentLibrary/SynthTechAlco-fg.svg diff --git a/res/ComponentLibrary/SynthTechAlco.svg b/res/ComponentLibrary/SynthTechAlco.svg index 7c393e1e..7d0388e0 100644 --- a/res/ComponentLibrary/SynthTechAlco.svg +++ b/res/ComponentLibrary/SynthTechAlco.svg @@ -1,438 +1,102 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - + + + + + + + + + + + + + + +