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 {
|
|
|
|
|
2021-07-17 13:29:55 +01:00
|
|
|
int setColor(const 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-07-17 13:29:55 +01:00
|
|
|
void changeJCColor(const std::vector<int>& values);
|
2021-03-16 02:04:21 +00:00
|
|
|
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 {
|
|
|
|
|
2021-07-17 13:29:55 +01:00
|
|
|
int setColor(const 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-07-17 13:29:55 +01:00
|
|
|
void changePCColor(const std::vector<int>& values);
|
2021-03-16 02:04:21 +00:00
|
|
|
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 {
|
|
|
|
|
2021-07-17 13:29:55 +01:00
|
|
|
int hexToBGR(const std::string& hex);
|
2021-03-16 02:04:21 +00:00
|
|
|
std::string BGRToHex(int v);
|
2021-07-17 13:29:55 +01:00
|
|
|
bool isHexaAnd3Bytes(const std::string& str);
|
2021-03-16 02:04:21 +00:00
|
|
|
|
|
|
|
}
|