diff --git a/include/componentlibrary.hpp b/include/componentlibrary.hpp index 4c612cba..74ce6e5e 100644 --- a/include/componentlibrary.hpp +++ b/include/componentlibrary.hpp @@ -643,16 +643,16 @@ struct Trimpot : app::SvgKnob { }; struct BefacoBigKnob : app::SvgKnob { + widget::SvgWidget* bg; + BefacoBigKnob() { minAngle = -0.75 * M_PI; maxAngle = 0.75 * M_PI; setSvg(Svg::load(asset::system("res/ComponentLibrary/BefacoBigKnob.svg"))); - } -}; -struct BefacoBigSnapKnob : BefacoBigKnob { - BefacoBigSnapKnob() { - snap = true; + bg = new widget::SvgWidget; + fb->addChildBelow(bg, tw); + bg->setSvg(Svg::load(asset::system("res/ComponentLibrary/BefacoBigKnob-bg.svg"))); } }; diff --git a/res/ComponentLibrary/BefacoBigKnob-bg.svg b/res/ComponentLibrary/BefacoBigKnob-bg.svg new file mode 100644 index 00000000..de7a73aa --- /dev/null +++ b/res/ComponentLibrary/BefacoBigKnob-bg.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + diff --git a/res/ComponentLibrary/BefacoBigKnob.svg b/res/ComponentLibrary/BefacoBigKnob.svg index 912ba00b..e45a6d88 100644 --- a/res/ComponentLibrary/BefacoBigKnob.svg +++ b/res/ComponentLibrary/BefacoBigKnob.svg @@ -1,81 +1,129 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +