Ejemplo n.º 1
0
//==============================================================================
void Stretch::paint (Graphics& g)
{
    GradientBrush gradient_1 (Colour (0x7bf00ff),
                              50.0f, 50.0f,
                              Colour (0x8000),
                              48.0f, 136.0f,
                              false);
    g.setBrush (&gradient_1);
    g.fillRect (-32, -72, 984, 216);

    //[UserPaint] Add your own custom paint stuff here..
  //fillit();
    //[/UserPaint]
}
Ejemplo n.º 2
0
//==============================================================================
void stepQuickEdit::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
    //[/UserPrePaint]

    GradientBrush gradient_1 (Colour (0xad353535),
                              56.0f, 0.0f,
                              Colours::black,
                              56.0f, 256.0f,
                              false);
    g.setBrush (&gradient_1);
    g.fillRoundedRectangle (0.0f, 0.0f, 128.0f, 272.0f, 10.0000f);

    //[UserPaint] Add your own custom painting code here..
	LookAndFeel::drawGlassLozenge (g, 4, 2, 120, 16, Colour(64,64,64).withAlpha (0.8f), 0.0f, 5.0f, false, false, false, true);
    //[/UserPaint]
}
Ejemplo n.º 3
0
//==============================================================================
void EdoChatWindowMessage::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
    //[/UserPrePaint]

    //[UserPaint] Add your own custom painting code here..
	GradientBrush gradient_1 (_propCol(EWND_MESSAGE_BG_COLOUR1, Colour(0xa0a0a0a0)),
                              (float) ((getWidth() / 2)), 0.0f,
                              _propCol(EWND_MESSAGE_BG_COLOUR2, Colour(0xa0f8f8f8)),
                              (float) ((getWidth() / 2)), (float) (getHeight()),
                              false);
    g.setBrush (&gradient_1);
    g.fillRoundedRectangle (1.0f, 1.0f, (float) (getWidth() - 2), (float) (getHeight() - 2), 4.0000f);

    g.setColour (_propCol(EWND_MESSAGE_OUTLINE_COLOUR, Colour(0xa0ffffff)));
    g.drawRoundedRectangle (1.0f, 1.0f, (float) (getWidth() - 2), (float) (getHeight() - 2), 4.0000f, (float) _propDbl(EWND_MESSAGE_OUTLINE_THICK,1.0f));
    //[/UserPaint]
}
Ejemplo n.º 4
0
//==============================================================================
void EdoChatWindowMessage::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
    //[/UserPrePaint]

    //[UserPaint] Add your own custom painting code here..
	GradientBrush gradient_1 (getPropertyColour (EWND_MESSAGE_BG_COLOUR1),
                              (float) ((getWidth() / 2)), 0.0f,
                              getPropertyColour (EWND_MESSAGE_BG_COLOUR2),
                              (float) ((getWidth() / 2)), (float) (getHeight()),
                              false);
    g.setBrush (&gradient_1);
    g.fillRoundedRectangle (1.0f, 1.0f, (float) (getWidth() - 2), (float) (getHeight() - 2), (float) getPropertyDouble (EWND_MESSAGE_OUTLINE_CORNER));

    g.setColour (getPropertyColour (EWND_MESSAGE_OUTLINE_COLOUR));
    g.drawRoundedRectangle (1.0f, 1.0f, (float) (getWidth() - 2), (float) (getHeight() - 2), (float) getPropertyDouble (EWND_MESSAGE_OUTLINE_CORNER), (float) getPropertyDouble (EWND_MESSAGE_OUTLINE_THICK));
    //[/UserPaint]
}
Ejemplo n.º 5
0
//==============================================================================
void WelcomeComponent::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
    //[/UserPrePaint]

    g.fillAll (Colours::white);

    ColourGradient gradient_1 (Colours::white,
                              152.0f, 24.0f,
                              Colour (0xffbee6c8),
                              240.0f, 280.0f,
                              false);
    g.setGradientFill(gradient_1);
    g.fillRect (0, 0, proportionOfWidth (1.0000f), proportionOfHeight (1.0000f));

    g.setColour (Colour (0xff2aa581));
    g.fillEllipse ((float) (-28), (float) (-28), 100.0f, 100.0f);

    //[UserPaint] Add your own custom painting code here..
    //[/UserPaint]
}
Ejemplo n.º 6
0
//==============================================================================
void EdoChatWindow::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
	if (getComponentPropertyBool (EWND_BG_IMG, false, false) == false)
	{
		GradientBrush gradient_1 (getComponentPropertyColour (EWND_BG_COLOUR1, false),
                              (float) ((getWidth() / 2)), 0.0f,
                              getComponentPropertyColour (EWND_BG_COLOUR2, false),
                              (float) ((getWidth() / 2)), (float) (getHeight()),
                              false);
		g.setBrush (&gradient_1);
		g.fillRect (0.0f, 0.0f, (float) getWidth(), (float) getHeight());
	}
    //[/UserPrePaint]

    //[UserPaint] Add your own custom painting code here..
	else
	{
		if (getComponentPropertyInt (EWND_BG_IMG_LAYOUT, false) == Tile)
		{
			g.setBrush (imageBrush);
			g.fillAll();
		}

		if (getComponentPropertyInt (EWND_BG_IMG_LAYOUT, false) == Center)
		{
			const int x = (getWidth()/2) - (backgroundImage->getWidth()/2);
			const int y = (getHeight()/2) - (backgroundImage->getHeight()/2);
			g.drawImageAt (backgroundImage, x, y , false);
		}

		if (getComponentPropertyInt (EWND_BG_IMG_LAYOUT, false) == Stretch)
		{
			g.drawImage (backgroundImage, 0, 0, getWidth(), getHeight(), 0, 0, backgroundImage->getWidth(), backgroundImage->getHeight(), false);
		}
	}
    //[/UserPaint]
}
Ejemplo n.º 7
0
//==============================================================================
void EdoCalDay::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
	if (!selected)
	{
		GradientBrush gradient_1 (Colour (0xffe2e2e5).darker(colourStep),
                              (float) ((getWidth() / 2)), 0.0f,
                              Colour (0xffdfdee1).darker(colourStep),
                              (float) ((getWidth() / 2)), (float) (getHeight()),
                              false);
		g.setBrush (&gradient_1);
		g.fillRect (0, 0, getWidth() - 0, getHeight() - 0);

	    g.setColour (Colour (0xffa7aab3));
	    g.drawRect (0, 0, getWidth() - 0, getHeight() - 0, 1);
	}
	else
	{
		GradientBrush gradient_3 (Colour (0xff1980e5),
                                  (float) ((getWidth() / 2)), (float) ((getHeight() / 2)),
                                  Colour (0xff0d4eb9),
                                  (float) ((getWidth() / 2)), (float) (getHeight()*2),
                                  true);
        g.setBrush (&gradient_3);
        g.fillRect (0, 0, getWidth() - 0, getHeight() - 0);

        g.setColour (Colour (0xff364f72));
        g.drawRect (0, 0, getWidth() - 0, getHeight() - 0, 1);
	}
    //[/UserPrePaint]

    //[UserPaint] Add your own custom painting code here..
	g.setColour (Colour (0xfff3f3f5).darker ((colourStep*0.5f)));
	g.drawLine (1, 1, (float)(getWidth() - 1), 1.0, 0.75f);
	g.drawLine ((float)(getWidth() - 1), 1, (float)(getWidth() - 1), (float)(getHeight() - 1), 0.75f);
    //[/UserPaint]
}
Ejemplo n.º 8
0
//==============================================================================
void MainComponent::paint (Graphics& g)
{
    //[UserPrePaint] Add your own custom painting code here..
    //[/UserPrePaint]

    g.fillAll (Colour (0xff959595));

    GradientBrush gradient_1 (Colour (0xff898989),
                              (float) ((getWidth() / 2)), 0.0f,
                              Colour (0xff010101),
                              (float) ((getWidth() / 2)), (float) (getHeight()),
                              false);
    g.setBrush (&gradient_1);
    g.fillRect (0, 0, proportionOfWidth (1.0000f), proportionOfHeight (1.0000f));

    g.setColour (Colours::white);
    g.setFont (Font (Font::getDefaultMonospacedFontName(), 24.0000f, Font::bold));
    g.drawText (T("Base64 Encoder"),
                347, 352, 237, 30,
                Justification::centred, true);

    //[UserPaint] Add your own custom painting code here..
    //[/UserPaint]
}
Ejemplo n.º 9
0
    void ArrowToolbarButton::paintButton (Graphics& g, bool isMouseOverButton, bool isButtonDown)
    {
        Path internalPath2;
        Path internalPath3;
        Path internalPath5;
        Path internalPath6;

        internalPath2.clear();
        internalPath2.startNewSubPath (24.0f, 8.0f);
        internalPath2.lineTo (32.0f, 8.0f);
        internalPath2.lineTo (32.0f, 16.0f);
        internalPath2.closeSubPath();

        internalPath3.clear();
        internalPath3.startNewSubPath (32.0f, 8.0f);
        internalPath3.lineTo (8.0f, 32.0f);
        internalPath3.closeSubPath();

        internalPath5.clear();
        internalPath5.startNewSubPath (24.0f, 8.0f);
        internalPath5.lineTo (32.0f, 8.0f);
        internalPath5.lineTo (32.0f, 16.0f);
        internalPath5.closeSubPath();

        internalPath6.clear();
        internalPath6.startNewSubPath (32.0f, 8.0f);
        internalPath6.lineTo (8.0f, 32.0f);
        internalPath6.closeSubPath();

        if (isButtonDown)
        {
            GradientBrush gradient_4 (Colours::black,
                                      20.0f, 19.0f,
                                      Colours::white,
                                      20.0f, 1.0f,
                                      false);
            g.setBrush (&gradient_4);
            g.fillRoundedRectangle (1.0f, 1.0f, 38.0f, 38.0f, 6.0000f);

            g.setColour (Colours::white);
            g.drawRoundedRectangle (1.0f, 1.0f, 38.0f, 38.0f, 6.0000f, 0.6000f);

            g.setColour (Colours::white);
            g.fillPath (internalPath5);

            g.setColour (Colours::white);
            g.fillPath (internalPath6);
            g.setColour (Colours::white);
            g.strokePath (internalPath6, PathStrokeType (2.3000f));
        }
        else
        {
            GradientBrush gradient_1 (Colours::black,
                                      20.0f, 13.0f,
                                      Colours::white,
                                      20.0f, 1.0f,
                                      false);
            g.setBrush (&gradient_1);
            g.fillRoundedRectangle (1.0f, 1.0f, 38.0f, 38.0f, 6.0000f);

            g.setColour (Colours::white);
            g.drawRoundedRectangle (1.0f, 1.0f, 38.0f, 38.0f, 6.0000f, 0.6000f);

            g.setColour (Colours::white);
            g.fillPath (internalPath2);

            g.setColour (Colours::white);
            g.fillPath (internalPath3);
            g.setColour (Colours::white);
            g.strokePath (internalPath3, PathStrokeType (2.3000f));
        }
    }