Browse Source

Remove incomplete VCVSliderHorizontal and VCVLightSliderHorizontal components.

tags/v2.6.0
Andrew Belt 11 months ago
parent
commit
33d3127eb1
1 changed files with 0 additions and 23 deletions
  1. +0
    -23
      include/componentlibrary.hpp

+ 0
- 23
include/componentlibrary.hpp View File

@@ -701,17 +701,6 @@ struct VCVSlider : app::SvgSlider {
};
using LEDSlider = VCVSlider;

struct VCVSliderHorizontal : app::SvgSlider {
VCVSliderHorizontal() {
horizontal = true;
// TODO Fix SVG
setBackgroundSvg(Svg::load(asset::system("res/ComponentLibrary/VCVSliderHorizontal.svg")));
// TODO Fix positions
setHandlePos(mm2px(math::Vec(0.738, 0.738).plus(math::Vec(0, 2))), mm2px(math::Vec(22.078, 0.738).plus(math::Vec(0, 2))));
}
};
using LEDSliderHorizontal = VCVSliderHorizontal;

/** An SvgSlider with an attached light.
Construct with createLightParamCentered() helper function.
*/
@@ -760,18 +749,6 @@ struct LEDSliderYellow : VCVLightSlider<YellowLight> {};
struct LEDSliderBlue : VCVLightSlider<BlueLight> {};
struct LEDSliderWhite : VCVLightSlider<WhiteLight> {};

template <typename TLightBase = RedLight>
struct VCVLightSliderHorizontal : LightSlider<VCVSliderHorizontal, TLightBase> {
VCVLightSliderHorizontal() {
// TODO Fix positions
this->light->box.size = mm2px(math::Vec(3.276, 1.524));
// TODO Fix SVG
this->setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/VCVSliderHorizontalHandle.svg")));
}
};
template <typename TLightBase = RedLight>
using LEDLightSliderHorizontal = VCVLightSliderHorizontal<TLightBase>;


////////////////////
// Ports


Loading…
Cancel
Save