Browse Source

Fix LEDSlider handle position.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
33176922cd
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      include/componentlibrary.hpp

+ 4
- 5
include/componentlibrary.hpp View File

@@ -642,13 +642,12 @@ struct BefacoSlidePot : app::SvgSlider {

struct LEDSlider : app::SvgSlider {
LEDSlider() {
// TODO Fix positions
setHandlePos(
mm2px(math::Vec(0.738, 22.078).plus(math::Vec(2, 0))),
mm2px(math::Vec(0.738, 0.738).plus(math::Vec(2, 0)))
);
setBackgroundSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSlider.svg")));
setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSliderHandle.svg")));
setHandlePosCentered(
math::Vec(19.84260/2, 76.53517 - 11.74218/2),
math::Vec(19.84260/2, 0.0 + 11.74218/2)
);
}
};



Loading…
Cancel
Save