1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Added a custom text colour for DrawableButton and fixed a bugette in KeyPress.

This commit is contained in:
Julian Storer 2010-08-27 12:41:49 +01:00
parent 322cd4dba2
commit df554b5ad8
6 changed files with 43 additions and 8 deletions

View file

@ -173,7 +173,9 @@ void DrawableButton::paintButton (Graphics& g,
{
g.setFont ((float) textH);
g.setColour (Colours::black.withAlpha (isEnabled() ? 1.0f : 0.4f));
g.setColour (getLookAndFeel().findColour (DrawableButton::textColourId)
.withMultipliedAlpha (isEnabled() ? 1.0f : 0.4f));
g.drawFittedText (getButtonText(),
2, getHeight() - textH - 1,
getWidth() - 4, textH,