2021-03-16 03:04:21 +01:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-16 03:43:48 +01:00
|
|
|
#include <json.hpp>
|
2021-03-16 03:04:21 +01:00
|
|
|
|
|
|
|
namespace JC {
|
|
|
|
|
2021-07-17 14:29:55 +02:00
|
|
|
int setColor(const std::vector<int>& colors);
|
2021-09-11 15:48:13 +02:00
|
|
|
int backupToJSON(nlohmann::json& profiles, const std::string& path);
|
2021-05-22 18:10:34 +02:00
|
|
|
std::vector<std::pair<std::string, std::vector<int>>> getProfiles(const std::string& path);
|
2021-07-17 14:29:55 +02:00
|
|
|
void changeJCColor(const std::vector<int>& values);
|
2021-03-16 03:04:21 +01:00
|
|
|
nlohmann::json backupProfile();
|
2021-05-22 18:10:34 +02:00
|
|
|
void backupJCColor(const std::string& path);
|
2021-03-16 03:04:21 +01:00
|
|
|
|
2021-09-11 15:48:13 +02:00
|
|
|
} // namespace JC
|
2021-03-16 03:04:21 +01:00
|
|
|
|
|
|
|
namespace PC {
|
|
|
|
|
2021-07-17 14:29:55 +02:00
|
|
|
int setColor(const std::vector<int>& colors);
|
2021-09-11 15:48:13 +02:00
|
|
|
int backupToJSON(nlohmann::json& profiles, const std::string& path);
|
2021-05-22 18:10:34 +02:00
|
|
|
std::vector<std::pair<std::string, std::vector<int>>> getProfiles(const std::string& path);
|
2021-07-17 14:29:55 +02:00
|
|
|
void changePCColor(const std::vector<int>& values);
|
2021-03-16 03:04:21 +01:00
|
|
|
nlohmann::json backupProfile();
|
2021-05-22 18:10:34 +02:00
|
|
|
void backupPCColor(const std::string& path);
|
2021-03-16 03:04:21 +01:00
|
|
|
|
2021-09-11 15:48:13 +02:00
|
|
|
} // namespace PC
|
2021-03-16 03:04:21 +01:00
|
|
|
|
|
|
|
namespace ColorSwapper {
|
|
|
|
|
2021-07-17 14:29:55 +02:00
|
|
|
int hexToBGR(const std::string& hex);
|
2021-03-16 03:04:21 +01:00
|
|
|
std::string BGRToHex(int v);
|
2021-07-17 14:29:55 +02:00
|
|
|
bool isHexaAnd3Bytes(const std::string& str);
|
2021-03-16 03:04:21 +01:00
|
|
|
|
2021-09-11 15:48:13 +02:00
|
|
|
} // namespace ColorSwapper
|