Cleanup, fix initial light mode
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1262f318da
commit
aa90be8d60
6 changed files with 5 additions and 15 deletions
|
|
@ -108,10 +108,6 @@ void Window::step() {
|
|||
}
|
||||
|
||||
|
||||
// void Window::activateContext() {
|
||||
// }
|
||||
|
||||
|
||||
void Window::screenshot(const std::string&) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue