void InterfaceComponent::paintListBoxItem (const int rowNumber, juce::Graphics& g, const int width, const int height, const bool isRowSelected) { if (isRowSelected) { g.fillAll (juce::Colours::white.darker()); g.setColour (juce::Colours::white.darker().contrasting()); } else { g.setColour (fileListBox.findColour (juce::ListBox::textColourId)); } g.setFont (height * 0.7f); g.drawText (files[rowNumber], 5, 0, width, height, juce::Justification::centredLeft, false); const float h = (float) height; const float w = (float) width; const float offset = 5.0f; const float thickness = 0.25f; g.setColour (juce::Colours::lightgrey); g.drawLine (offset, h - thickness, w - (offset * 2.0f), h - thickness, thickness); }
void OscOutputManagerHeaderComponent::paint(juce::Graphics &g) { g.setColour( AddictLookAndFeel::getBackgroundColour() ); g.fillAll(); g.setColour( AddictLookAndFeel::getOutlineColour() ); g.drawLine( 0.0f, float(getHeight()), float(getWidth()), float(getHeight())); }