Browse Source

Make LEDSliderGreen etc aliases of LEDLightSlider<GreenLight> etc.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
f55fddf650
1 changed files with 7 additions and 35 deletions
  1. +7
    -35
      include/componentlibrary.hpp

+ 7
- 35
include/componentlibrary.hpp View File

@@ -652,41 +652,6 @@ struct LEDSlider : app::SvgSlider {
}
};

// TODO Modernize
struct LEDSliderGreen : LEDSlider {
LEDSliderGreen() {
setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSliderGreenHandle.svg")));
}
};

// TODO Modernize
struct LEDSliderRed : LEDSlider {
LEDSliderRed() {
setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSliderRedHandle.svg")));
}
};

// TODO Modernize
struct LEDSliderYellow : LEDSlider {
LEDSliderYellow() {
setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSliderYellowHandle.svg")));
}
};

// TODO Modernize
struct LEDSliderBlue : LEDSlider {
LEDSliderBlue() {
setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSliderBlueHandle.svg")));
}
};

// TODO Modernize
struct LEDSliderWhite : LEDSlider {
LEDSliderWhite() {
setHandleSvg(Svg::load(asset::system("res/ComponentLibrary/LEDSliderWhiteHandle.svg")));
}
};

// TODO Modernize
struct LEDSliderHorizontal : app::SvgSlider {
LEDSliderHorizontal() {
@@ -727,6 +692,13 @@ struct LEDLightSlider : LightSlider<LEDSlider, LEDSliderLight<TLightBase>> {
LEDLightSlider() {}
};

/** Deprecated. Use LEDSliderLight with your preferred LightWidget. */
struct LEDSliderGreen : LEDLightSlider<GreenLight> {};
struct LEDSliderRed : LEDLightSlider<RedLight> {};
struct LEDSliderYellow : LEDLightSlider<YellowLight> {};
struct LEDSliderBlue : LEDLightSlider<BlueLight> {};
struct LEDSliderWhite : LEDLightSlider<WhiteLight> {};

// TODO Modernize
template <typename TLightBase = RedLight>
struct LEDLightSliderHorizontal : LightSlider<LEDSliderHorizontal, TLightBase> {


Loading…
Cancel
Save