1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Introjucer: fix for broken colour scheme when run for the first time.

This commit is contained in:
jules 2012-07-18 16:32:39 +01:00
parent 2d9312ca3e
commit c2666bfe61
4 changed files with 9 additions and 7 deletions

View file

@ -122,10 +122,10 @@ void ProjectContentComponent::paint (Graphics& g)
void ProjectContentComponent::paintOverChildren (Graphics& g)
{
if (contentView != nullptr)
if (resizerBar != nullptr)
{
const int shadowSize = 15;
const int x = contentView->getX();
const int x = resizerBar->getRight();
ColourGradient cg (Colours::black.withAlpha (0.25f), (float) x, 0,
Colours::transparentBlack, (float) (x - shadowSize), 0, false);