Browse Source

Projucer: Use widget colour id for MultiChoicePropertyComponent button text

tags/2021-05-28
ed 7 years ago
parent
commit
1060e3a0c2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp

+ 2
- 1
extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp View File

@@ -161,7 +161,8 @@ void ProjucerLookAndFeel::drawToggleButton (Graphics& g, ToggleButton& button, b
g.setOpacity (0.5f);
bool isTextEmpty = button.getButtonText().isEmpty();
bool isPropertyComponentChild = (dynamic_cast<BooleanPropertyComponent*> (button.getParentComponent()) != nullptr);
bool isPropertyComponentChild = (dynamic_cast<BooleanPropertyComponent*> (button.getParentComponent()) != nullptr
|| dynamic_cast<MultiChoicePropertyComponent*> (button.getParentComponent()) != nullptr);
auto bounds = button.getLocalBounds();


Loading…
Cancel
Save