diff --git a/src/Makefile b/src/Makefile index 8799bff..440fcf4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 diff --git a/include/componentlibrary.hpp b/src/custom/Browser.cpp similarity index 80% rename from include/componentlibrary.hpp rename to src/custom/Browser.cpp index 5b0705f..ef9a335 100644 --- a/include/componentlibrary.hpp +++ b/src/custom/Browser.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Cardinal Plugin - * Copyright (C) 2021-2022 Filipe Coelho + * Copyright (C) 2021-2026 Filipe Coelho * * 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"