Browse Source

Remove global override of "yellow"

Signed-off-by: falkTX <falktx@falktx.com>
main
parent
commit
462a519663
2 changed files with 7 additions and 8 deletions
  1. +2
    -0
      src/Makefile
  2. +5
    -8
      src/custom/Browser.cpp

+ 2
- 0
src/Makefile View File

@@ -33,6 +33,7 @@ BUILD_CXX_FLAGS += -DnsvgParseFromFile=nsvgParseFromFileCardinal

RACK_FILES += AsyncDialog.cpp
RACK_FILES += CardinalModuleWidget.cpp
RACK_FILES += custom/Browser.cpp
RACK_FILES += custom/asset.cpp
RACK_FILES += custom/dep.cpp
RACK_FILES += custom/library.cpp
@@ -68,6 +69,7 @@ IGNORED_FILES += Rack/src/plugin.cpp
IGNORED_FILES += Rack/src/rtaudio.cpp
IGNORED_FILES += Rack/src/rtmidi.cpp
IGNORED_FILES += Rack/src/app/AudioDisplay.cpp
IGNORED_FILES += Rack/src/app/Browser.cpp
IGNORED_FILES += Rack/src/app/MenuBar.cpp
IGNORED_FILES += Rack/src/app/MidiDisplay.cpp
IGNORED_FILES += Rack/src/app/ModuleWidget.cpp


include/componentlibrary.hpp → src/custom/Browser.cpp View File

@@ -1,6 +1,6 @@
/*
* DISTRHO Cardinal Plugin
* Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2021-2026 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -15,17 +15,14 @@
* For a full copy of the GNU General Public License see the LICENSE file.
*/

#pragma once

// little hack to force browser yellow color to cardinal red
#define SCHEME_YELLOW SCHEME_YELLOW_OldVCV
#include_next "componentlibrary.hpp"
#include "componentlibrary.hpp"
#undef SCHEME_YELLOW

namespace rack {
namespace componentlibrary {

// Yellow? What's that?
static const NVGcolor SCHEME_YELLOW = nvgRGBf(0.76f, 0.11f, 0.22f);

}
}

#include "../src/app/Browser.cpp"

Loading…
Cancel
Save