Browse Source

Add VCVBezelLatch and VCVLightBezelLatch to component library.

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

+ 17
- 0
include/componentlibrary.hpp View File

@@ -856,6 +856,8 @@ struct VCVLatch : VCVButton {
}
};

/** Looks best with MediumSimpleLight<WhiteLight> or a color of your choice.
*/
template <typename TLight>
struct VCVLightButton : VCVButton {
app::ModuleLightWidget* light;
@@ -906,6 +908,13 @@ struct VCVBezel : app::SvgSwitch {
};
using LEDBezel = VCVBezel;

struct VCVBezelLatch : VCVBezel {
VCVBezelLatch() {
momentary = false;
latch = true;
}
};

template <typename TLightBase = WhiteLight>
struct VCVLightBezel : VCVBezel {
app::ModuleLightWidget* light;
@@ -924,6 +933,14 @@ struct VCVLightBezel : VCVBezel {
template <typename TLightBase = WhiteLight>
using LEDLightBezel = VCVLightBezel<TLightBase>;

template <typename TLightBase = WhiteLight>
struct VCVLightBezelLatch : VCVLightBezel<TLightBase> {
VCVLightBezelLatch() {
this->momentary = false;
this->latch = true;
}
};

struct PB61303 : app::SvgSwitch {
PB61303() {
momentary = true;


Loading…
Cancel
Save