From 4f3e2eeb64178c3380324727bfed1ce83cfd1f50 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 5 Nov 2021 07:19:41 -0400 Subject: [PATCH] Add various component graphics updates from Pyer. --- include/componentlibrary.hpp | 17 +- res/ComponentLibrary/CL1362.svg | 507 +++------------- res/ComponentLibrary/NKK_0.svg | 219 ++++--- res/ComponentLibrary/NKK_1.svg | 195 ++++--- res/ComponentLibrary/NKK_2.svg | 214 ++++--- res/ComponentLibrary/PJ3410.svg | 444 ++------------ res/ComponentLibrary/SynthTechAlco-bg.svg | 46 ++ ...hTechAlco_cap.svg => SynthTechAlco-fg.svg} | 0 res/ComponentLibrary/SynthTechAlco.svg | 540 ++++-------------- 9 files changed, 635 insertions(+), 1547 deletions(-) create mode 100644 res/ComponentLibrary/SynthTechAlco-bg.svg rename res/ComponentLibrary/{SynthTechAlco_cap.svg => SynthTechAlco-fg.svg} (100%) 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 - - - - - - - - - - - + + + + + + + + + + + + + + +