Skip to content

Commit

Permalink
Merge branch development-juce8 into testing-juce8
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Mar 4, 2025
2 parents 0c953aa + 204dda7 commit f2afd1c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
23 changes: 11 additions & 12 deletions Source/Processors/Editors/GenericEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,25 +871,24 @@ void UtilityButton::paintButton (Graphics& g, bool isMouseOver, bool isButtonDow
{
isEnabled = Button::isEnabled();

Colour backgroundColour = findColour (ThemeColours::widgetBackground);

if (getToggleState())
{
g.setColour (findColour (ThemeColours::highlightedFill));
}
else
{
g.setColour (findColour (ThemeColours::widgetBackground));
backgroundColour = findColour (ThemeColours::highlightedFill);
}

g.fillPath (outlinePath);
auto baseColour = backgroundColour.withMultipliedSaturation (hasKeyboardFocus (true) ? 1.3f : 1.0f)
.withMultipliedAlpha (isEnabled ? 1.0f : 0.5f);

if (isMouseOver || ! isEnabled)
g.setColour (findColour (ThemeColours::outline).withAlpha (0.4f));
else
g.setColour (findColour (ThemeColours::outline));
if (isButtonDown || isMouseOver)
baseColour = baseColour.contrasting (isButtonDown ? 0.2f : 0.05f);

g.strokePath (outlinePath, PathStrokeType (1.0f));
g.setColour (baseColour);
g.fillPath (outlinePath);

//int stringWidth = font.getStringWidth(getName());
g.setColour (findColour (ThemeColours::outline).withAlpha (isEnabled ? 1.0f : 0.5f));
g.strokePath (outlinePath, PathStrokeType (1.0f));

g.setFont (font);

Expand Down
2 changes: 1 addition & 1 deletion Source/Processors/PluginManager/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int PluginManager::loadPlugin (const String& pluginLoc)
to memory mishaps.
*/
void* handle = 0;
handle = dlopen (processorLocCString, RTLD_GLOBAL | RTLD_NOW);
handle = dlopen (processorLocCString, RTLD_LOCAL | RTLD_NOW);
#endif

if (! handle)
Expand Down
4 changes: 4 additions & 0 deletions Source/UI/PluginInstaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ PluginInstaller::PluginInstaller (bool loadComponents)
if (loadComponents)
{
setSize (910, 480);

if (auto window = getActiveTopLevelWindow())
setCentrePosition (window->getScreenBounds().getCentre());

#ifdef JUCE_WINDOWS
setUsingNativeTitleBar (false);
#else
Expand Down
1 change: 0 additions & 1 deletion Source/UI/UIComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,6 @@ bool UIComponent::perform (const InvocationInfo& info)
}
pluginInstaller->setVisible (true);
pluginInstaller->toFront (true);
pluginInstaller->setCentrePosition (this->getScreenBounds().getCentre());
break;
}

Expand Down

0 comments on commit f2afd1c

Please sign in to comment.