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

@ -67,9 +67,6 @@ std::string patchesPath();
namespace engine {
void Engine_setRemoteDetails(Engine*, remoteUtils::RemoteDetails*);
}
namespace plugin {
void updateStaticPluginsDarkMode();
}
namespace app {
namespace menuBar {
@ -565,7 +562,6 @@ struct ViewButton : MenuButton {
darkModeText = CHECKMARK_STRING;
menu->addChild(createMenuItem("Dark Mode", darkModeText, []() {
switchDarkMode(!settings::darkMode);
plugin::updateStaticPluginsDarkMode();
setAllFramebufferWidgetsDirty(APP->scene);
}));

View file

@ -66,13 +66,10 @@ const std::string APP_VERSION_MAJOR = "2";
const std::string APP_VERSION = "2.3.0";
#if defined ARCH_WIN
const std::string APP_OS = "win";
const std::string APP_OS_NAME = "Windows";
#elif defined ARCH_MAC
const std::string APP_OS = "mac";
const std::string APP_OS_NAME = "macOS";
#elif defined ARCH_LIN
const std::string APP_OS = "lin";
const std::string APP_OS_NAME = "Linux";
#else
#error ARCH_LIN undefined
#endif