#include "./theme.hpp" // HACK: includes everything and sets theme defaults #include "./contact_list.hpp" //#include //enum class TestThemeSet { //Value1, //}; //// specialization ////template<> ////std::string typeValueName(TestThemeSet v) { ////switch (v) { ////case TestThemeSet::Value1: return "Value1"; ////default: return "unk"; ////} ////} Theme::Theme(void) { load(); } void Theme::update(void) { } bool Theme::load(void) { name = "Default"; //setColor(ImVec4{}); //std::cout << "test value name: " << getColorName() << "\n"; return true; } bool Theme::store(void) { return true; } Theme getDefaultThemeDark(void) { Theme t; t.setColor({0.98f, 0.41f, 0.26f, 0.52f}); t.setColor({0.98f, 0.26f, 0.41f, 0.52f}); t.setColor({0.3f, 1.0f, 0.0f, 1.0f}); t.setColor({0.0f, 1.0f, 0.8f, 1.0f}); t.setColor({0.4f, 0.4f, 0.4f, 1.0f}); t.setColor(ImGui::GetStyleColorVec4(ImGuiCol_PlotHistogramHovered)); t.setColor({0.6f, 0.6f, 0.6f, 0.9f}); t.setColor({0.0f, 0.0f, 0.0f, 0.4f}); return t; } Theme getDefaultThemeLight(void) { // HACK: inherit dark and only diff Theme t = getDefaultThemeDark(); return t; }