| 45 | } |
| 46 | |
| 47 | void TranscriptionOptionsView::paint(Graphics& g) |
| 48 | { |
| 49 | g.setColour(WHITE_TRANSPARENT); |
| 50 | g.fillRoundedRectangle(0.0f, |
| 51 | LEFT_SECTIONS_TOP_PAD, |
| 52 | static_cast<float>(getWidth()), |
| 53 | static_cast<float>(getHeight() - LEFT_SECTIONS_TOP_PAD), |
| 54 | 5.0f); |
| 55 | |
| 56 | float alpha = isEnabled() ? 1.0f : 0.5f; |
| 57 | |
| 58 | g.setColour(BLACK.withAlpha(alpha)); |
| 59 | g.setFont(UIDefines::TITLE_FONT()); |
| 60 | g.drawText("TRANSCRIPTION", Rectangle<int>(24, 0, 250, 17), juce::Justification::centredLeft); |
| 61 | |
| 62 | auto enable_rectangle = juce::Rectangle<int>(0, 0, 17, 17); |
| 63 | if (isEnabled()) |
| 64 | g.fillRoundedRectangle(enable_rectangle.toFloat(), 4.0f); |
| 65 | else |
| 66 | g.drawRoundedRectangle(enable_rectangle.toFloat(), 4.0f, 1.0f); |
| 67 | |
| 68 | g.setFont(UIDefines::LABEL_FONT()); |
| 69 | g.drawText( |
| 70 | "PITCH BEND", juce::Rectangle<int>(19, mPitchBendDropDown->getY(), 67, 17), juce::Justification::centredLeft); |
| 71 | } |
nothing calls this directly
no test coverage detected