looper/theme.h

26 lines
588 B
C
Raw Normal View History

2023-07-09 18:56:12 -07:00
#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;
public:
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;
static bool ShowEditor(bool *open, Theme* &theme);
2023-07-09 18:56:12 -07:00
void Apply(float hue);
void Save(string path);
Theme();
Theme(bool dark);
Theme(string path);
};