diff --git a/CMakeLists.txt b/CMakeLists.txt index cc31eb5..e928a04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,9 @@ cmrc_add_resource_library(sst-jucegui-resources NAMESPACE sst::jucegui::resource res/glyphs/step_count.svg res/glyphs/metronome.svg res/glyphs/mute.svg + res/glyphs/routing-post-fader.svg + res/glyphs/routing-pre-fader.svg + res/glyphs/routing-pre-fx.svg ) add_library(${PROJECT_NAME} STATIC diff --git a/include/sst/jucegui/components/GlyphPainter.h b/include/sst/jucegui/components/GlyphPainter.h index de9d7d1..a6ab34b 100644 --- a/include/sst/jucegui/components/GlyphPainter.h +++ b/include/sst/jucegui/components/GlyphPainter.h @@ -77,6 +77,11 @@ struct GlyphPainter : public juce::Component, POWER_LIGHT_OFF, // a special case of an off power light which isn't the // grayed out filled power light + // Channel Strip routing icons + ROUTING_PRE_FX, + ROUTING_PRE_FADER, + ROUTING_POST_FADER, + MUTE, MONO, diff --git a/res/glyphs/routing-post-fader.svg b/res/glyphs/routing-post-fader.svg new file mode 100644 index 0000000..802933e --- /dev/null +++ b/res/glyphs/routing-post-fader.svg @@ -0,0 +1,3 @@ + + + diff --git a/res/glyphs/routing-pre-fader.svg b/res/glyphs/routing-pre-fader.svg new file mode 100644 index 0000000..3eaf09b --- /dev/null +++ b/res/glyphs/routing-pre-fader.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/res/glyphs/routing-pre-fx.svg b/res/glyphs/routing-pre-fx.svg new file mode 100644 index 0000000..acedd59 --- /dev/null +++ b/res/glyphs/routing-pre-fx.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/sst/jucegui/components/GlyphPainter.cpp b/src/sst/jucegui/components/GlyphPainter.cpp index 131fa33..a9ed76b 100644 --- a/src/sst/jucegui/components/GlyphPainter.cpp +++ b/src/sst/jucegui/components/GlyphPainter.cpp @@ -380,6 +380,18 @@ void GlyphPainter::paintGlyph(juce::Graphics &g, const juce::Rectangle &int paintFromSvg(g, into, "res/glyphs/mute.svg", 0xFFAFAFAF, 1400, 1400, as); return; + case ROUTING_PRE_FX: + paintFromSvg(g, into, "res/glyphs/routing-pre-fx.svg", 0xFFAFAFAF, 24, 24, as); + return; + + case ROUTING_PRE_FADER: + paintFromSvg(g, into, "res/glyphs/routing-pre-fader.svg", 0xFFAFAFAF, 24, 24, as); + return; + + case ROUTING_POST_FADER: + paintFromSvg(g, into, "res/glyphs/routing-post-fader.svg", 0xFFAFAFAF, 24, 24, as); + return; + case KEYBOARD: paintKeyboardGlyph(g, into); return;