diff --git a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp index ab47325c10..cffef3dc95 100644 --- a/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp +++ b/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp @@ -220,7 +220,16 @@ void LookAndFeel_V3::drawTabButton (TabBarButton& button, Graphics& g, bool isMo if (o != TabbedButtonBar::TabsAtLeft) g.fillRect (r.removeFromRight (1)); const float alpha = button.isEnabled() ? ((isMouseOver || isMouseDown) ? 1.0f : 0.8f) : 0.3f; - const Colour col (bkg.contrasting().withMultipliedAlpha (alpha)); + + Colour col (bkg.contrasting().withMultipliedAlpha (alpha)); + + if (TabbedButtonBar* bar = button.findParentComponentOfClass()) + { + if (button.isFrontTab() && bar->isColourSpecified (TabbedButtonBar::frontTextColourId)) + col = bar->findColour (TabbedButtonBar::frontTextColourId); + else if (bar->isColourSpecified (TabbedButtonBar::tabTextColourId)) + col = bar->findColour (TabbedButtonBar::tabTextColourId); + } const Rectangle area (button.getTextArea().toFloat());