Browse Source

Cleanup, fix initial light mode

Signed-off-by: falkTX <falktx@falktx.com>
tags/23.07
falkTX 2 years ago
parent
commit
aa90be8d60
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
6 changed files with 5 additions and 15 deletions
  1. +0
    -3
      deps/Makefile
  2. +1
    -1
      plugins/Makefile
  3. +0
    -4
      src/custom/RemoteWindow.cpp
  4. +4
    -0
      src/custom/dep.cpp
  5. +0
    -4
      src/override/MenuBar.cpp
  6. +0
    -3
      src/override/common.cpp

+ 0
- 3
deps/Makefile View File

@@ -274,9 +274,6 @@ SURGE_CXX_FLAGS += -msse -msse2 -mfpmath=sse
endif
endif

# same flags as applied to main build
SURGE_CXX_FLAGS += -I$(abspath ../src/Rack/dep/simde)

# possibly use fftw?
# ifeq ($(shell $(PKG_CONFIG) --exists fftw3 fftw3f && echo true),true)
# SURGE_CXX_FLAGS += -DJUCE_DSP_USE_STATIC_FFTW=1


+ 1
- 1
plugins/Makefile View File

@@ -643,7 +643,7 @@ CATROMODULO_CUSTOM = LowFrequencyOscillator NumDisplayWidget
PLUGIN_FILES += $(filter-out cf/src/plugin.cpp,$(wildcard cf/src/*.cpp))

# modules/types which are present in other plugins
CF_CUSTOM = $(DRWAV) ledTrigger
CF_CUSTOM = $(DRWAV)

# --------------------------------------------------------------
# dBiz


+ 0
- 4
src/custom/RemoteWindow.cpp View File

@@ -108,10 +108,6 @@ void Window::step() {
}


// void Window::activateContext() {
// }


void Window::screenshot(const std::string&) {
}



+ 4
- 0
src/custom/dep.cpp 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)
{


+ 0
- 4
src/override/MenuBar.cpp 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);
}));



+ 0
- 3
src/override/common.cpp 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


Loading…
Cancel
Save