1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Ensure that MultiChoicePropertyComponent colours are visible

This commit is contained in:
ed 2018-04-19 14:33:55 +01:00
parent 89ec1375f3
commit 9c17e6172a

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());
}