Replace silver screws with black ones, invert colors

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-11-06 17:58:27 +00:00
parent 591aad30ec
commit 0f889e77fc
2 changed files with 50 additions and 14 deletions

View file

@ -16,6 +16,7 @@
*/
#include <asset.hpp>
#include <string.hpp>
#include <system.hpp>
#include <plugin/Plugin.hpp>
@ -49,6 +50,9 @@ std::string user(std::string filename) {
// get system resource, trimming "res/" prefix if we are loaded as a plugin bundle
std::string system(std::string filename) {
if (string::endsWith(filename, "ComponentLibrary/ScrewSilver.svg")) {
filename = filename.substr(0, filename.size()-32) + "ComponentLibrary/ScrewBlack.svg";
}
return system::join(systemDir, bundlePath.empty() ? filename : trim(filename));
}