|
@@ -564,6 +564,11 @@ void Window::screenshot(const std::string& screenshotPath) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Window::screenshotModules(const std::string& screenshotsDir, float zoom) { |
|
|
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 |
|
|
// Iterate plugins and create directories |
|
|
system::createDirectories(screenshotsDir); |
|
|
system::createDirectories(screenshotsDir); |
|
|
for (plugin::Plugin* p : plugin::plugins) { |
|
|
for (plugin::Plugin* p : plugin::plugins) { |
|
|