==============================================================================
| 671 | |
| 672 | //============================================================================== |
| 673 | void VASTPresetEditorComponent::paint (juce::Graphics& g) |
| 674 | { |
| 675 | //[UserPrePaint] Add your own custom painting code here.. |
| 676 | //[/UserPrePaint] |
| 677 | |
| 678 | g.fillAll (juce::Colour (0xff323e44)); |
| 679 | |
| 680 | { |
| 681 | int x = 0, y = 0, width = getWidth() - 0, height = getHeight() - 0; |
| 682 | juce::Colour fillColour1 = juce::Colour (0x4f616d7e), fillColour2 = juce::Colour (0xbd03070a); |
| 683 | //[UserPaintCustomArguments] Customize the painting arguments here.. |
| 684 | fillColour1 = myEditor->getCurrentVASTLookAndFeel()->findVASTColour(VASTColours::colPresetEditorBackgroundGradientFrom); |
| 685 | fillColour2 = myEditor->getCurrentVASTLookAndFeel()->findVASTColour(VASTColours::colPresetEditorBackgroundGradientTo); |
| 686 | //[/UserPaintCustomArguments] |
| 687 | g.setGradientFill (juce::ColourGradient (fillColour1, |
| 688 | static_cast<float> (proportionOfWidth (-0.0400f)) - 0.0f + x, |
| 689 | static_cast<float> (proportionOfHeight (-0.0154f)) - 0.0f + y, |
| 690 | fillColour2, |
| 691 | static_cast<float> (proportionOfWidth (1.0200f)) - 0.0f + x, |
| 692 | static_cast<float> (proportionOfHeight (1.0200f)) - 0.0f + y, |
| 693 | false)); |
| 694 | g.fillRect (x, y, width, height); |
| 695 | } |
| 696 | |
| 697 | //[UserPaint] Add your own custom painting code here.. |
| 698 | |
| 699 | //[/UserPaint] |
| 700 | } |
| 701 | |
| 702 | void VASTPresetEditorComponent::resized() |
| 703 | { |
nothing calls this directly
no test coverage detected