|
|
|
@@ -43932,7 +43932,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, |
|
|
|
@@ -60696,9 +60698,10 @@ const KeyPress KeyPress::createFromDescription (const String& desc) |
|
|
|
if (key == 0) |
|
|
|
{ |
|
|
|
// see if it's a function key.. |
|
|
|
for (int i = 1; i <= 12; ++i) |
|
|
|
if (desc.containsWholeWordIgnoreCase ("f" + String (i))) |
|
|
|
key = F1Key + i - 1; |
|
|
|
if (! desc.containsChar ('#')) // avoid mistaking hex-codes like "#f1" |
|
|
|
for (int i = 1; i <= 12; ++i) |
|
|
|
if (desc.containsWholeWordIgnoreCase ("f" + String (i))) |
|
|
|
key = F1Key + i - 1; |
|
|
|
|
|
|
|
if (key == 0) |
|
|
|
{ |
|
|
|
@@ -64955,6 +64958,8 @@ LookAndFeel::LookAndFeel() |
|
|
|
FileSearchPathListComponent::backgroundColourId, 0xffffffff, |
|
|
|
|
|
|
|
FileChooserDialogBox::titleTextColourId, 0xff000000, |
|
|
|
|
|
|
|
DrawableButton::textColourId, 0xff000000, |
|
|
|
}; |
|
|
|
|
|
|
|
for (int i = 0; i < numElementsInArray (standardColours); i += 2) |
|
|
|
|