diff --git a/src/Blinds.cpp b/src/Blinds.cpp index 8903904..f43e857 100644 --- a/src/Blinds.cpp +++ b/src/Blinds.cpp @@ -71,7 +71,13 @@ void Blinds::step() { struct BlindsWidget : ModuleWidget { BlindsWidget(Blinds *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Blinds.svg"))); + box.size = Vec(15*12, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Blinds.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(150, 0))); diff --git a/src/Braids.cpp b/src/Braids.cpp index ab79e24..f608b0b 100644 --- a/src/Braids.cpp +++ b/src/Braids.cpp @@ -295,7 +295,13 @@ struct BraidsLowCpuItem : MenuItem { struct BraidsWidget : ModuleWidget { BraidsWidget(Braids *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Braids.svg"))); + box.size = Vec(15*16, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Braids.png")); + panel->box.size = box.size; + addChild(panel); + } { BraidsDisplay *display = new BraidsDisplay(); diff --git a/src/Branches.cpp b/src/Branches.cpp index 7b630a3..9115a32 100644 --- a/src/Branches.cpp +++ b/src/Branches.cpp @@ -91,7 +91,13 @@ void Branches::step() { struct BranchesWidget : ModuleWidget { BranchesWidget(Branches *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Branches.svg"))); + box.size = Vec(15*6, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Branches.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(15, 365))); diff --git a/src/Clouds.cpp b/src/Clouds.cpp index bf7578c..a63a69f 100644 --- a/src/Clouds.cpp +++ b/src/Clouds.cpp @@ -310,7 +310,13 @@ struct CloudsWidget : ModuleWidget { ParamWidget *reverbParam; CloudsWidget(Clouds *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Clouds.svg"))); + box.size = Vec(15*18, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Clouds.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(240, 0))); diff --git a/src/Elements.cpp b/src/Elements.cpp index 1a0b599..73f97a8 100644 --- a/src/Elements.cpp +++ b/src/Elements.cpp @@ -229,7 +229,13 @@ struct ElementsModalItem : MenuItem { struct ElementsWidget : ModuleWidget { ElementsWidget(Elements *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Elements.svg"))); + box.size = Vec(15*34, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Elements.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(480, 0))); diff --git a/src/Frames.cpp b/src/Frames.cpp index 4450c9a..98d0dd2 100644 --- a/src/Frames.cpp +++ b/src/Frames.cpp @@ -287,7 +287,13 @@ struct CKSSRot : SVGSwitch, ToggleSwitch { struct FramesWidget : ModuleWidget { FramesWidget(Frames *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Frames.svg"))); + box.size = Vec(15*18, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Frames.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(box.size.x-30, 0))); diff --git a/src/Kinks.cpp b/src/Kinks.cpp index 491751d..79e2ea5 100644 --- a/src/Kinks.cpp +++ b/src/Kinks.cpp @@ -70,7 +70,13 @@ void Kinks::step() { struct KinksWidget : ModuleWidget { KinksWidget(Kinks *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Kinks.svg"))); + box.size = Vec(15*4, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Kinks.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(15, 365))); diff --git a/src/Links.cpp b/src/Links.cpp index 7f24fb3..124a26e 100644 --- a/src/Links.cpp +++ b/src/Links.cpp @@ -58,7 +58,13 @@ void Links::step() { struct LinksWidget : ModuleWidget { LinksWidget(Links *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Links.svg"))); + box.size = Vec(15*4, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Links.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(15, 365))); diff --git a/src/Rings.cpp b/src/Rings.cpp index fed78da..3d47388 100644 --- a/src/Rings.cpp +++ b/src/Rings.cpp @@ -248,7 +248,13 @@ void Rings::step() { struct RingsWidget : ModuleWidget { RingsWidget(Rings *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Rings.svg"))); + box.size = Vec(15*14, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Rings.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(180, 0))); diff --git a/src/Shades.cpp b/src/Shades.cpp index 357a6fa..94b68e1 100644 --- a/src/Shades.cpp +++ b/src/Shades.cpp @@ -62,7 +62,13 @@ void Shades::step() { struct ShadesWidget : ModuleWidget { ShadesWidget(Shades *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Shades.svg"))); + box.size = Vec(15*6, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Shades.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(15, 365))); diff --git a/src/Tides.cpp b/src/Tides.cpp index 0ed6c15..ad2b874 100644 --- a/src/Tides.cpp +++ b/src/Tides.cpp @@ -209,6 +209,7 @@ struct TidesWidget : ModuleWidget { Panel *sheepPanel; TidesWidget(Tides *module) : ModuleWidget(module) { + box.size = Vec(15*14, 380); { tidesPanel = new LightPanel(); tidesPanel->backgroundImage = Image::load(assetPlugin(plugin, "res/Tides.png")); diff --git a/src/Veils.cpp b/src/Veils.cpp index 00d70c8..d0391f6 100644 --- a/src/Veils.cpp +++ b/src/Veils.cpp @@ -70,7 +70,13 @@ void Veils::step() { struct VeilsWidget : ModuleWidget { VeilsWidget(Veils *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Veils.svg"))); + box.size = Vec(15*12, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Veils.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(150, 0))); diff --git a/src/Warps.cpp b/src/Warps.cpp index 61fd85a..2b2c82b 100644 --- a/src/Warps.cpp +++ b/src/Warps.cpp @@ -128,7 +128,13 @@ struct AlgorithmLight : RedGreenBlueLight { struct WarpsWidget : ModuleWidget { WarpsWidget(Warps *module) : ModuleWidget(module) { - setPanel(SVG::load(assetPlugin(plugin, "res/Warps.svg"))); + box.size = Vec(15*10, 380); + { + Panel *panel = new LightPanel(); + panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Blinds.png")); + panel->box.size = box.size; + addChild(panel); + } addChild(Widget::create(Vec(15, 0))); addChild(Widget::create(Vec(120, 0)));