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);
|
2021-05-22 17:10:34 +01:00
|
|
|
int backupToJSON(nlohmann::json &profiles, const std::string& path);
|
|
|
|
std::vector<std::pair<std::string, std::vector<int>>> getProfiles(const std::string& path);
|
2021-03-16 02:04:21 +00:00
|
|
|
void changeJCColor(std::vector<int> values);
|
|
|
|
nlohmann::json backupProfile();
|
2021-05-22 17:10:34 +01:00
|
|
|
void backupJCColor(const std::string& path);
|
2021-03-16 02:04:21 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace PC {
|
|
|
|
|
|
|
|
int setColor(std::vector<int> colors);
|
2021-05-22 17:10:34 +01:00
|
|
|
int backupToJSON(nlohmann::json &profiles,const std::string& path);
|
|
|
|
std::vector<std::pair<std::string, std::vector<int>>> getProfiles(const std::string& path);
|
2021-03-16 02:04:21 +00:00
|
|
|
void changePCColor(std::vector<int> values);
|
|
|
|
nlohmann::json backupProfile();
|
2021-05-22 17:10:34 +01:00
|
|
|
void backupPCColor(const std::string& path);
|
2021-03-16 02:04:21 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ColorSwapper {
|
|
|
|
|
|
|
|
int hexToBGR(std::string hex);
|
|
|
|
std::string BGRToHex(int v);
|
|
|
|
bool isHexaAnd3Bytes(std::string str);
|
|
|
|
|
|
|
|
}
|