From d3443d7e7cdd2c19356438f7b38c2645788707ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ulita?= <246355456+pawel-ulita@users.noreply.github.com> Date: Tue, 26 May 2026 09:56:55 +0200 Subject: [PATCH] fix: use the desktop scale in plugin window 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. --- src/ui/pluginwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/pluginwindow.cpp b/src/ui/pluginwindow.cpp index ab4e2d074..f1200a372 100644 --- a/src/ui/pluginwindow.cpp +++ b/src/ui/pluginwindow.cpp @@ -324,7 +324,7 @@ PluginWindow::~PluginWindow() setLookAndFeel (nullptr); } -float PluginWindow::getDesktopScaleFactor() const { return 1.f; } +float PluginWindow::getDesktopScaleFactor() const { return (float) juce::Desktop::getInstance().getGlobalScaleFactor(); } Content* PluginWindow::getElementContentComponent() const {