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:
parent
322cd4dba2
commit
df554b5ad8
6 changed files with 43 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue