コード例 #1
0
//==============================================================================
// GUI Look and Feel functions
void SignalProcessorAudioProcessorEditor::setupSquareLookAndFeelColours (LookAndFeel& laf)
{
    const Colour baseColour (Colours::red);
    
    laf.setColour (Slider::thumbColourId, Colour::greyLevel (0.95f));
    laf.setColour (Slider::textBoxOutlineColourId, Colours::transparentWhite);
    laf.setColour (Slider::rotarySliderFillColourId, baseColour);
    laf.setColour (Slider::rotarySliderOutlineColourId, Colours::white);
    laf.setColour (Slider::trackColourId, Colours::white);
    laf.setColour (Slider::textBoxTextColourId, Colours::white);
    
    laf.setColour (TextButton::buttonColourId, Colours::white);
    laf.setColour (TextButton::textColourOffId, baseColour);
    laf.setColour (TextButton::buttonOnColourId, laf.findColour (TextButton::textColourOffId));
    laf.setColour (TextButton::textColourOnId, laf.findColour (TextButton::buttonColourId));
    laf.setColour (ToggleButton::textColourId, Colours::white);
    
    laf.setColour (Label::textColourId, Colours::white);
    
    laf.setColour (ComboBox::textColourId, Colours::white);
    laf.setColour (ComboBox::backgroundColourId, baseColour);
    laf.setColour (ComboBox::buttonColourId, Colours::black);
    laf.setColour (ComboBox::outlineColourId, Colours::transparentWhite);
    
    laf.setColour(TooltipWindow::textColourId, Colours::black);
    laf.setColour(TooltipWindow::backgroundColourId, Colour::fromRGB(192, 0, 0));

}
コード例 #2
0
ファイル: LookAndFeelDemo.cpp プロジェクト: Neknail/JUCE
    void setupCustomLookAndFeelColours (LookAndFeel& laf)
    {
        laf.setColour (Slider::thumbColourId, Colour::greyLevel (0.95f));
        laf.setColour (Slider::textBoxOutlineColourId, Colours::transparentWhite);
        laf.setColour (Slider::rotarySliderFillColourId, Colour (0xff00b5f6));
        laf.setColour (Slider::rotarySliderOutlineColourId, Colours::white);

        laf.setColour (TextButton::buttonColourId, Colours::white);
        laf.setColour (TextButton::textColourOffId, Colour (0xff00b5f6));

        laf.setColour (TextButton::buttonOnColourId, laf.findColour (TextButton::textColourOffId));
        laf.setColour (TextButton::textColourOnId, laf.findColour (TextButton::buttonColourId));
    }
コード例 #3
0
ファイル: LookAndFeelDemo.cpp プロジェクト: Neknail/JUCE
    void setupSquareLookAndFeelColours (LookAndFeel& laf)
    {
        const Colour baseColour (Colours::red);
        laf.setColour (Slider::thumbColourId, Colour::greyLevel (0.95f));
        laf.setColour (Slider::textBoxOutlineColourId, Colours::transparentWhite);
        laf.setColour (Slider::rotarySliderFillColourId, baseColour);
        laf.setColour (Slider::rotarySliderOutlineColourId, Colours::white);
        laf.setColour (Slider::trackColourId, Colours::black);

        laf.setColour (TextButton::buttonColourId, Colours::white);
        laf.setColour (TextButton::textColourOffId, baseColour);

        laf.setColour (TextButton::buttonOnColourId, laf.findColour (TextButton::textColourOffId));
        laf.setColour (TextButton::textColourOnId, laf.findColour (TextButton::buttonColourId));
    }
コード例 #4
0
void AppearanceSettings::applyToLookAndFeel (LookAndFeel& lf) const
{
    for (int i = 0; i < AppearanceColours::numColours; ++i)
    {
        Colour col;
        if (getColour (AppearanceColours::colours[i].name, col))
        {
            if (AppearanceColours::colours[i].mustBeOpaque)
                col = Colours::white.overlaidWith (col);

            if (! AppearanceColours::colours[i].applyToEditorOnly)
                lf.setColour (AppearanceColours::colours[i].colourID, col);
        }
    }

    lf.setColour (ScrollBar::thumbColourId, lf.findColour (mainBackgroundColourId).contrasting().withAlpha (0.13f));
}
コード例 #5
0
void AppearanceSettings::applyToLookAndFeel (LookAndFeel& lf) const
{
    for (int i = 0; i < AppearanceColours::numColours; ++i)
    {
        Colour col;
        if (getColour (AppearanceColours::colours[i].name, col))
        {
            if (AppearanceColours::colours[i].mustBeOpaque)
                col = Colours::white.overlaidWith (col);

            if (! AppearanceColours::colours[i].applyToEditorOnly)
                lf.setColour (AppearanceColours::colours[i].colourID, col);
        }
    }

    lf.setColour (ScrollBar::thumbColourId,
                  IntrojucerLookAndFeel::getScrollbarColourForBackground (lf.findColour (mainBackgroundColourId)));
}
コード例 #6
0
ファイル: PluginEditor.cpp プロジェクト: eriser/Kreps-vst
void setupCustomLookAndFeelColours (LookAndFeel& laf)
{
	//laf.setColour (Slider::thumbColourId, Colour::greyLevel (0.95f));
	laf.setColour (Slider::textBoxOutlineColourId, Colours::black);
	laf.setColour(Slider::textBoxBackgroundColourId,Colour((0x00ffb5f6)));
	laf.setColour (Slider::rotarySliderFillColourId, Colours::darkorange);
	//laf.setColour (Slider::rotarySliderOutlineColourId, Colours::white);
    laf.setColour(Slider::thumbColourId, Colours::brown);

	laf.setColour (TextButton::buttonColourId, Colours::white);
    laf.setColour(TextButton::buttonOnColourId, laf.findColour(TextButton::textColourOffId));
    //laf.setColour (TextButton::textColourOnId, laf.findColour (TextButton::buttonColourId));
	//laf.setColour (TextButton::textColourOffId, Colour (0xff00b5f6));

    laf.setColour(GroupComponent::textColourId, Colour(0xff000000));

    //laf.setColour(Label::backgroundColourId, Colour(0x33ffffff));
};