28 lines
No EOL
635 B
C++
28 lines
No EOL
635 B
C++
#pragma once
|
|
#include "imgui.h"
|
|
#include <set>
|
|
#include <string>
|
|
#include "file_browser.h"
|
|
#include <filesystem>
|
|
using std::string;
|
|
using namespace std::filesystem;
|
|
|
|
class Theme {
|
|
ImGuiStyle style;
|
|
|
|
public:
|
|
static std::set<path> availableThemes;
|
|
static void updateAvailableThemes();
|
|
static path themeDir;
|
|
static const char* prefPath;
|
|
string file_path;
|
|
std::set<int> HueEnabledColors;
|
|
static bool ShowEditor(bool *open, Theme* &theme);
|
|
void Apply(float hue);
|
|
void Save(string path);
|
|
void Save(path path);
|
|
Theme();
|
|
Theme(bool dark);
|
|
Theme(string path);
|
|
Theme(path path);
|
|
}; |