From 21cc43ddd737d24c05e75bf5439d0bec962d0937 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 13 Jul 2023 04:40:19 -0400 Subject: [PATCH] Disable preferDarkPanels when taking module screenshots. --- src/window/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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) {