Browse Source

Add right arrow to submenus.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
487c24c6d0
2 changed files with 5 additions and 2 deletions
  1. +3
    -1
      src/Core/MIDI_CV.cpp
  2. +2
    -1
      src/app/ModuleBrowser.cpp

+ 3
- 1
src/Core/MIDI_CV.cpp View File

@@ -550,17 +550,19 @@ struct MIDI_CVWidget : ModuleWidget {

ClockDivisionItem *clockDivisionItem = new ClockDivisionItem;
clockDivisionItem->text = "CLK/N divider";
clockDivisionItem->rightText = RIGHT_ARROW;
clockDivisionItem->module = module;
menu->addChild(clockDivisionItem);

ChannelItem *channelItem = new ChannelItem;
channelItem->text = "Polyphony channels";
channelItem->rightText = string::f("%d", module->channels);
channelItem->rightText = string::f("%d", module->channels) + " " +RIGHT_ARROW;
channelItem->module = module;
menu->addChild(channelItem);

PolyModeItem *polyModeItem = new PolyModeItem;
polyModeItem->text = "Polyphony mode";
polyModeItem->rightText = RIGHT_ARROW;
polyModeItem->module = module;
menu->addChild(polyModeItem);



+ 2
- 1
src/app/ModuleBrowser.cpp View File

@@ -212,7 +212,6 @@ struct ModelBox : widget::OpaqueWidget {

nvgScissor(args.vg, RECT_ARGS(args.clipBox));
OpaqueWidget::draw(args);
nvgResetScissor(args.vg);

// Translucent overlay when selected
if (selected) {
@@ -221,6 +220,8 @@ struct ModelBox : widget::OpaqueWidget {
nvgFillColor(args.vg, nvgRGBAf(1, 1, 1, 0.25));
nvgFill(args.vg);
}

nvgResetScissor(args.vg);
}

void onButton(const event::Button &e) override;


Loading…
Cancel
Save