Browse Source

Ensure that MultiChoicePropertyComponent colours are visible

tags/2021-05-28
ed 7 years ago
parent
commit
9c17e6172a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp

+ 2
- 2
modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp View File

@@ -273,7 +273,7 @@ void MultiChoicePropertyComponent::paint (Graphics& g)
if (! expanded)
{
g.setColour (findColour (PropertyComponent::labelTextColourId).withAlpha (0.4f));
g.setColour (findColour (TextEditor::backgroundColourId).contrasting().withAlpha (0.4f));
g.drawFittedText ("+ " + String (numHidden) + " more", getLookAndFeel().getPropertyComponentContentPosition (*this)
.removeFromBottom (20).withTrimmedLeft (10),
Justification::centredLeft, 1);
@@ -333,7 +333,7 @@ void MultiChoicePropertyComponent::setExpanded (bool isExpanded) noexcept
//==============================================================================
void MultiChoicePropertyComponent::lookAndFeelChanged()
{
auto iconColour = findColour (PropertyComponent::labelTextColourId);
auto iconColour = findColour (TextEditor::backgroundColourId).contrasting();
expandButton.setColours (iconColour, iconColour.darker(), iconColour.darker());
}


Loading…
Cancel
Save