diff --git a/src/window/Window.cpp b/src/window/Window.cpp index fd8850bf..19d3cd8c 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -564,6 +564,11 @@ void Window::screenshot(const std::string& screenshotPath) { void Window::screenshotModules(const std::string& screenshotsDir, float zoom) { + // Disable preferDarkPanels + bool preferDarkPanels = settings::preferDarkPanels; + settings::preferDarkPanels = false; + DEFER({settings::preferDarkPanels = preferDarkPanels;}); + // Iterate plugins and create directories system::createDirectories(screenshotsDir); for (plugin::Plugin* p : plugin::plugins) {