Initial Commit
This commit is contained in:
34
include/color_swapper.hpp
Normal file
34
include/color_swapper.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include <json.hpp>
|
||||
#include <deque>
|
||||
|
||||
namespace JC {
|
||||
|
||||
int setColor(const std::vector<int>& colors);
|
||||
int backupToJSON(nlohmann::ordered_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::ordered_json backupProfile();
|
||||
void backupJCColor(const std::string& path);
|
||||
|
||||
} // namespace JC
|
||||
|
||||
namespace PC {
|
||||
|
||||
int setColor(const std::vector<int>& colors);
|
||||
int backupToJSON(nlohmann::ordered_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::ordered_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
|
||||
Reference in New Issue
Block a user