2021-03-16 02:04:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-16 02:43:48 +00:00
|
|
|
#include <json.hpp>
|
2021-03-16 02:04:21 +00:00
|
|
|
|
|
|
|
namespace JC {
|
|
|
|
|
|
|
|
int setColor(std::vector<int> colors);
|
|
|
|
int backupToJSON(nlohmann::json &profiles, const char* path);
|
2021-03-16 14:56:46 +00:00
|
|
|
std::vector<std::pair<std::string, std::vector<int>>> getProfiles(const char* path);
|
2021-03-16 02:04:21 +00:00
|
|
|
void changeJCColor(std::vector<int> values);
|
|
|
|
nlohmann::json backupProfile();
|
|
|
|
void backupJCColor(const char* path);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace PC {
|
|
|
|
|
|
|
|
int setColor(std::vector<int> colors);
|
|
|
|
int backupToJSON(nlohmann::json &profiles, const char* path);
|
2021-03-16 14:56:46 +00:00
|
|
|
std::vector<std::pair<std::string, std::vector<int>>> getProfiles(const char* path);
|
2021-03-16 02:04:21 +00:00
|
|
|
void changePCColor(std::vector<int> values);
|
|
|
|
nlohmann::json backupProfile();
|
|
|
|
void backupPCColor(const char* path);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ColorSwapper {
|
|
|
|
|
|
|
|
int hexToBGR(std::string hex);
|
|
|
|
std::string BGRToHex(int v);
|
|
|
|
bool isHexaAnd3Bytes(std::string str);
|
|
|
|
|
|
|
|
}
|