Skip to content

Commit

Permalink
Some glyph fixes
Browse files Browse the repository at this point in the history
1. add arrowltor
2. fix colors on mod+ and mod*
  • Loading branch information
baconpaul committed Aug 1, 2024
1 parent ab4f151 commit 03fc9c6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ include(cmake/CmakeRC.cmake)

cmrc_add_resource_library(sst-jucegui-resources NAMESPACE sst::jucegui::resources
res/glyphs/add-mod.svg
res/glyphs/arrow-ltor.svg
res/glyphs/close.svg
res/glyphs/curve.svg
res/glyphs/down.svg
Expand Down
2 changes: 2 additions & 0 deletions include/sst/jucegui/components/GlyphPainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ struct GlyphPainter : public juce::Component,
METRONOME,
KEYBOARD,

ARROW_L_TO_R,

MODULATION_ADDITIVE,
MODULATION_MULTIPLICATIVE,

Expand Down
2 changes: 1 addition & 1 deletion res/glyphs/add-mod.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions res/glyphs/arrow-ltor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion res/glyphs/mul-mod.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/sst/jucegui/components/GlyphPainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ void GlyphPainter::paintGlyph(juce::Graphics &g, const juce::Rectangle<int> &int
SVG24(ELLIPSIS_H, "ellipsis-h");
SVG24(ELLIPSIS_V, "ellipsis-v");
SVG24(NOTE_PRIORITY, "note-priority");
SVG24(ARROW_L_TO_R, "arrow-ltor");

case KEYBOARD:
paintKeyboardGlyph(g, into);
Expand Down

0 comments on commit 03fc9c6

Please sign in to comment.