From 0ae6bdb511cfd1e0034ea03c498a35163dda3dd4 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 6 Nov 2018 10:29:42 +0000 Subject: [PATCH] Projucer: Fixed an unused variable warning in the live-build engine --- .../Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp b/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp index 2aeebece1d..0726f3f74a 100644 --- a/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp +++ b/extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp @@ -41,8 +41,6 @@ void ProjucerLookAndFeel::drawTabButton (TabBarButton& button, Graphics& g, bool const auto area = button.getActiveArea(); auto backgroundColour = findColour (button.isFrontTab() ? secondaryBackgroundColourId : inactiveTabBackgroundColourId); - auto iconColour = findColour (button.isFrontTab() ? activeTabIconColourId - : inactiveTabIconColourId); g.setColour (backgroundColour); g.fillRect (area); @@ -50,6 +48,9 @@ void ProjucerLookAndFeel::drawTabButton (TabBarButton& button, Graphics& g, bool const auto alpha = button.isEnabled() ? ((isMouseOver || isMouseDown) ? 1.0f : 0.8f) : 0.3f; #ifndef BUILDING_JUCE_COMPILEENGINE + auto iconColour = findColour (button.isFrontTab() ? activeTabIconColourId + : inactiveTabIconColourId); + if (button.getName() == "Project") { auto icon = Icon (getIcons().closedFolder, iconColour.withMultipliedAlpha (alpha));