Possible to Remove Module Outline?


(Adam) #1

I notice that even if I use a completely empty SVG panel graphic, there is still a slight grey outline drawn around the bounds of the module (screenshot below). Is is possible to override this behavior? I would like to have a module drawn without this grey outline.

I am setting the panel in my ModuleWidget constructor like this:
setPanel(SVG::load(assetPlugin(plugin, "res/TotallyEmptyPanel.svg")));


(Marc Boulé) #2

Not sure if this is the best way or not, but you could simply make your own SVGPanel very similar to the one in src/app/SVGPanel.cpp (class declaration in include/app.hpp), and remove the border.
EDIT: if you are coding for Rack 1.0, see instead: src/app/SvgPanel.cpp and include/app/SvgPanel.hpp


(Adam) #3

This worked - thank you!