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

Projucer: Removed the live build

This commit is contained in:
Tom Poole 2021-05-14 08:18:19 +01:00
parent 64896eefcd
commit bfdda737a2
74 changed files with 673 additions and 7583 deletions

View file

@ -26,9 +26,7 @@
#include "../../Application/jucer_Headers.h"
#include "jucer_ProjucerLookAndFeel.h"
#ifndef BUILDING_JUCE_COMPILEENGINE
#include "../../Project/UI/jucer_ProjectContentComponent.h"
#endif
#include "../../Project/UI/jucer_ProjectContentComponent.h"
//==============================================================================
ProjucerLookAndFeel::ProjucerLookAndFeel()
@ -50,16 +48,14 @@ void ProjucerLookAndFeel::drawTabButton (TabBarButton& button, Graphics& g, bool
const auto alpha = button.isEnabled() ? ((isMouseOver || isMouseDown) ? 1.0f : 0.8f) : 0.3f;
auto textColour = findColour (defaultTextColourId).withMultipliedAlpha (alpha);
#ifndef BUILDING_JUCE_COMPILEENGINE
auto iconColour = findColour (button.isFrontTab() ? activeTabIconColourId
: inactiveTabIconColourId);
auto isProjectTab = button.getName() == ProjectContentComponent::getProjectTabName();
auto isBuildTab = button.getName() == ProjectContentComponent::getBuildTabName();
if (isProjectTab || isBuildTab)
if (isProjectTab)
{
auto icon = Icon (isProjectTab ? getIcons().closedFolder : getIcons().buildTab,
auto icon = Icon (getIcons().closedFolder,
iconColour.withMultipliedAlpha (alpha));
auto isSingleTab = (button.getTabbedButtonBar().getNumTabs() == 1);
@ -73,7 +69,7 @@ void ProjucerLookAndFeel::drawTabButton (TabBarButton& button, Graphics& g, bool
activeArea.removeFromLeft (10);
g.setColour (textColour);
g.drawFittedText (isProjectTab ? ProjectContentComponent::getProjectTabName() : ProjectContentComponent::getBuildTabName(),
g.drawFittedText (ProjectContentComponent::getProjectTabName(),
activeArea, Justification::centredLeft, 1);
}
else
@ -82,7 +78,6 @@ void ProjucerLookAndFeel::drawTabButton (TabBarButton& button, Graphics& g, bool
}
}
else
#endif
{
TextLayout textLayout;
LookAndFeel_V3::createTabTextLayout (button, (float) area.getWidth(), (float) area.getHeight(), textColour, textLayout);