1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-25 02:52:05 +00:00
AIO-switch-updater/include/color_swapper.hpp

33 lines
905 B
C++
Raw Normal View History

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