Skip to content

Fix: Use the desktop scale in plugin window#1109

Open
pawel-ulita wants to merge 1 commit into
kushview:mainfrom
pawel-ulita:fix-plugin-window-scale
Open

Fix: Use the desktop scale in plugin window#1109
pawel-ulita wants to merge 1 commit into
kushview:mainfrom
pawel-ulita:fix-plugin-window-scale

Conversation

@pawel-ulita
Copy link
Copy Markdown

This makes sure that the plugin window itself follows the desktop scale set in the settings. This affects the size of the buttons at the top, and also the size of the contents of the built-in plugins.

Before vs after Before before

After
after

I have only tested in on Linux, so I'm not sure about the consequences on other operating systems.

This makes sure that the plugin window itself follows the desktop scale
set in the settings. This affects the size of the buttons at the top,
and also the size of the contents of the built-in plugins.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 27, 2026

CLA assistant check
All committers have signed the CLA.

@pawel-ulita
Copy link
Copy Markdown
Author

I see this may conflict with: #478 At the same time, maybe this is not a problem any more? I don't experience anything like what the issue describes with the native and 3rd party plugins.

Comment thread src/ui/pluginwindow.cpp
}

float PluginWindow::getDesktopScaleFactor() const { return 1.f; }
float PluginWindow::getDesktopScaleFactor() const { return (float) juce::Desktop::getInstance().getGlobalScaleFactor(); }
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a better way would be to just remove getDesktopScaleFactor() altogether?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants