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

34 lines
1 KiB
C++
Raw Normal View History

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