mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Ensured that the "textWhenNothingSelected" takes the label font of label's lookandfeel into account
This commit is contained in:
parent
2fed2af669
commit
8e9edeff8b
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ void ComboBox::paint (Graphics& g)
|
|||
&& ! label->isBeingEdited())
|
||||
{
|
||||
g.setColour (findColour (textColourId).withMultipliedAlpha (0.5f));
|
||||
g.setFont (label->getFont());
|
||||
g.setFont (label->getLookAndFeel().getLabelFont (*label));
|
||||
g.drawFittedText (textWhenNothingSelected, label->getBounds().reduced (2, 1),
|
||||
label->getJustificationType(),
|
||||
jmax (1, (int) (label->getHeight() / label->getFont().getHeight())));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue