mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Modernised some code in CallOutBox and added some logic to scale the window with its content component's transform
This commit is contained in:
parent
333f98d204
commit
268ac3d5c8
8 changed files with 39 additions and 41 deletions
|
|
@ -236,14 +236,14 @@ private:
|
|||
}
|
||||
else if (type == calloutBoxWindow)
|
||||
{
|
||||
auto* colourSelector = new ColourSelector();
|
||||
auto colourSelector = std::make_unique<ColourSelector>();
|
||||
|
||||
colourSelector->setName ("background");
|
||||
colourSelector->setCurrentColour (findColour (TextButton::buttonColourId));
|
||||
colourSelector->setColour (ColourSelector::backgroundColourId, Colours::transparentBlack);
|
||||
colourSelector->setSize (300, 400);
|
||||
|
||||
CallOutBox::launchAsynchronously (colourSelector, button.getScreenBounds(), nullptr);
|
||||
CallOutBox::launchAsynchronously (std::move (colourSelector), button.getScreenBounds(), nullptr);
|
||||
}
|
||||
else if (type == extraComponentsAlertWindow)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue