1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-28 12:22:02 +00:00
AIO-switch-updater/include/color_swapper.hpp
2022-01-06 01:35:39 +01:00

34 lines
No EOL
1 KiB
C++

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