2023-07-09 18:56:12 -07:00
|
|
|
#pragma once
|
|
|
|
#include "imgui.h"
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
2023-07-17 12:21:38 -07:00
|
|
|
#include "file_browser.h"
|
2023-07-09 18:56:12 -07:00
|
|
|
#include <filesystem>
|
|
|
|
using std::string;
|
|
|
|
using namespace std::filesystem;
|
|
|
|
|
|
|
|
class Theme {
|
|
|
|
ImGuiStyle style;
|
|
|
|
|
|
|
|
public:
|
2023-07-10 19:27:55 -07:00
|
|
|
static std::set<path> availableThemes;
|
|
|
|
static void updateAvailableThemes();
|
|
|
|
static path themeDir;
|
2023-07-09 18:56:12 -07:00
|
|
|
static const char* prefPath;
|
|
|
|
string file_path;
|
|
|
|
std::set<int> HueEnabledColors;
|
2023-07-17 15:45:43 -07:00
|
|
|
static bool ShowEditor(bool *open, Theme* &theme, ImGuiID dockid, int window_width, int window_height);
|
2023-07-09 18:56:12 -07:00
|
|
|
void Apply(float hue);
|
|
|
|
void Save(string path);
|
2023-07-16 19:59:23 -07:00
|
|
|
void Save(path path);
|
2023-07-09 18:56:12 -07:00
|
|
|
Theme();
|
|
|
|
Theme(bool dark);
|
|
|
|
Theme(string path);
|
2023-07-16 19:59:23 -07:00
|
|
|
Theme(path path);
|
2023-07-09 18:56:12 -07:00
|
|
|
};
|