Browse Source

Disable preferDarkPanels when taking module screenshots.

tags/v2.4.0
Andrew Belt 1 year ago
parent
commit
21cc43ddd7
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/window/Window.cpp

+ 5
- 0
src/window/Window.cpp View File

@@ -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) {


Loading…
Cancel
Save