Cleanup, fix initial light mode

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-05-20 19:48:52 +02:00
parent 1262f318da
commit aa90be8d60
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
6 changed files with 5 additions and 15 deletions

View file

@ -108,10 +108,6 @@ void Window::step() {
}
// void Window::activateContext() {
// }
void Window::screenshot(const std::string&) {
}

View file

@ -61,6 +61,9 @@ void updateForcingBlackSilverScrewMode(std::string slug) {
}
}
#endif
namespace plugin {
void updateStaticPluginsDarkMode();
}
namespace settings {
bool darkMode = true;
int rateLimit = 0;
@ -1483,6 +1486,7 @@ void switchDarkMode(const bool darkMode)
settings::darkMode = darkMode;
settings::uiTheme = darkMode ? "dark" : "light";
ui::refreshTheme();
plugin::updateStaticPluginsDarkMode();
for (ExtendedNSVGimage& ext : loadedDarkSVGs)
{