BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

commit 5f196540eb2d64eb3386400faa9fe3834b183d53
parent 33a049f057126dd1d3cbb65c0cab75a1f6d63606
Author: Matt Demanett <matt@demanett.net>
Date:   Wed,  3 Jan 2018 01:47:03 -0500

26px knob.

Diffstat:
Ares-src/knob_26px-src.svg | 15+++++++++++++++
Ares/knob_26px.svg | 0
Msrc/widgets.hpp | 7+++++++
3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/res-src/knob_26px-src.svg b/res-src/knob_26px-src.svg @@ -0,0 +1,15 @@ +<svg + version="1.1" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="26" + height="26" + viewBox="0 0 26 26" +> + <g transform="translate(13 13)"> + <circle cx="0" cy="0" r="12.8" fill="#333" /> + <circle cx="0" cy="0" r="9.7" fill="#eee" /> + </g> + <circle cx="13" cy="1.6" r="1.3" fill="#fff" /> + <circle cx="13" cy="1.9" r="1.3" fill="#fff" /> +</svg> diff --git a/res/knob_26px.svg b/res/knob_26px.svg Binary files differ. diff --git a/src/widgets.hpp b/src/widgets.hpp @@ -13,6 +13,13 @@ struct Button18 : SVGSwitch, MomentarySwitch { } }; +struct Knob26 : RoundKnob { + Knob26() { + setSVG(SVG::load(assetPlugin(plugin, "res/knob_26px.svg"))); + box.size = Vec(26, 26); + } +}; + struct Knob29 : RoundKnob { Knob29() { setSVG(SVG::load(assetPlugin(plugin, "res/knob_29px.svg")));