30 lines
690 B
C
30 lines
690 B
C
|
#pragma once
|
||
|
#include "imgui.h"
|
||
|
#include <set>
|
||
|
#include <string>
|
||
|
#include "imfilebrowser.h"
|
||
|
#include <filesystem>
|
||
|
using std::string;
|
||
|
using namespace std::filesystem;
|
||
|
|
||
|
class Theme {
|
||
|
ImGuiStyle style;
|
||
|
ImGui::FileBrowser importDialog;
|
||
|
ImGui::FileBrowser exportDialog;
|
||
|
bool loadOpen = false;
|
||
|
bool saveAsOpen = false;
|
||
|
std::set<path> availableThemes;
|
||
|
void updateAvailableThemes();
|
||
|
|
||
|
public:
|
||
|
path themeDir;
|
||
|
static const char* prefPath;
|
||
|
string file_path;
|
||
|
std::set<int> HueEnabledColors;
|
||
|
bool ShowEditor(bool *open, Theme* &theme);
|
||
|
void Apply(float hue);
|
||
|
void Save(string path);
|
||
|
Theme();
|
||
|
Theme(bool dark);
|
||
|
Theme(string path);
|
||
|
};
|