| 187 | ControlPanel::~ControlPanel() noexcept = default; |
| 188 | |
| 189 | void ControlPanel::paint(juce::Graphics &g) |
| 190 | { |
| 191 | if (impl_->components_.empty()) { |
| 192 | g.setFont(15.f); |
| 193 | g.setColour(findColour(juce::Label::textColourId)); |
| 194 | g.drawFittedText("Error: could not load " + impl_->skinDir_ + "/default/layout.ini", |
| 195 | 20, 20, getWidth() - 40, getHeight() - 40, |
| 196 | juce::Justification::horizontallyCentred | juce::Justification::verticallyCentred, 2); |
| 197 | } else { |
| 198 | g.fillAll(juce::Colours::black); |
| 199 | } |
| 200 | } |
nothing calls this directly
no outgoing calls
no test coverage detected