diff --git a/include/componentlibrary.hpp b/include/componentlibrary.hpp index 985b1c0c..d6429354 100644 --- a/include/componentlibrary.hpp +++ b/include/componentlibrary.hpp @@ -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) + ); } };