Add a few more things for light/dark mode switch, WIP

This commit is contained in:
falkTX 2022-07-25 15:21:54 +01:00
parent 463e5cb770
commit 13020e793d
2 changed files with 355 additions and 64 deletions

View file

@ -50,9 +50,6 @@ 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) {
// Always use dark screws
if (string::endsWith(filename, "/ScrewSilver.svg"))
filename = filename.substr(0, filename.size()-10) + "Black.svg";
return system::join(systemDir, bundlePath.empty() ? filename : trim(filename));
}