diff --git a/CMakeLists.txt b/CMakeLists.txt
index b13e19d..fb518ad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,8 @@ cmrc_add_resource_library(sst-jucegui-resources NAMESPACE sst::jucegui::resource
res/glyphs/ellipsis-v.svg
res/glyphs/favorite.svg
res/glyphs/forward-backward.svg
+ res/glyphs/folder.svg
+ res/glyphs/file-music.svg
res/glyphs/freeze.svg
res/glyphs/left-right.svg
res/glyphs/left.svg
diff --git a/README.md b/README.md
index 59b9fd4..7a33539 100644
--- a/README.md
+++ b/README.md
@@ -69,3 +69,7 @@ AND THEN
- Squash it, Ship it, hack SC
https://www.figma.com/file/Acyp9F2ymRC2K8ltF3liaT/ED-Surge-XT-Wireframes-2.0.3?node-id=2299%3A45726
+
+Several of the icons in res/glyphs are from the MIT flowbrite icon collection
+https://github.com/themesberg/flowbite-icons
+
diff --git a/include/sst/jucegui/components/GlyphPainter.h b/include/sst/jucegui/components/GlyphPainter.h
index cf972a8..385f1cd 100644
--- a/include/sst/jucegui/components/GlyphPainter.h
+++ b/include/sst/jucegui/components/GlyphPainter.h
@@ -91,6 +91,10 @@ struct GlyphPainter : public juce::Component,
ROUTING_PRE_FADER,
ROUTING_POST_FADER,
+ // FileSystem
+ FOLDER,
+ FILE_MUSIC,
+
FAVORITE,
SAVE,
SEARCH,
diff --git a/res/glyphs/file-music.svg b/res/glyphs/file-music.svg
new file mode 100644
index 0000000..6411ab2
--- /dev/null
+++ b/res/glyphs/file-music.svg
@@ -0,0 +1,4 @@
+
+
diff --git a/res/glyphs/folder.svg b/res/glyphs/folder.svg
new file mode 100644
index 0000000..02525c4
--- /dev/null
+++ b/res/glyphs/folder.svg
@@ -0,0 +1,4 @@
+
+
diff --git a/src/sst/jucegui/components/GlyphPainter.cpp b/src/sst/jucegui/components/GlyphPainter.cpp
index a12dc2d..4c3fcfc 100644
--- a/src/sst/jucegui/components/GlyphPainter.cpp
+++ b/src/sst/jucegui/components/GlyphPainter.cpp
@@ -102,6 +102,8 @@ void paintFromSvg(juce::Graphics &g, const juce::Rectangle &into, const std
}
catch (std::exception &e)
{
+ g.setColour(juce::Colours::red);
+ g.fillRect(into);
// oh well
}
}
@@ -127,7 +129,8 @@ void paintFromSvg(juce::Graphics &g, const juce::Rectangle &into, const std
}
else
{
- g.fillAll(juce::Colours::orchid);
+ g.setColour(juce::Colours::orchid);
+ g.fillRect(into);
}
}
}
@@ -238,6 +241,9 @@ void GlyphPainter::paintGlyph(juce::Graphics &g, const juce::Rectangle &int
SVG24(NOTE_PRIORITY, "note-priority");
SVG24(ARROW_L_TO_R, "arrow-ltor");
+ SVG24(FOLDER, "folder");
+ SVG24(FILE_MUSIC, "file-music");
+
case SHOW_INFO:
paintFromSvg(g, into, "res/glyphs/show-info.svg", 0xFFAFAFAF, 16, 16, as);
return;