Color utils, Themes and other cool stuff for Dear ImGui
#include "candy.h"
These functions are to be used inside a loop, hence the use of static/global variables.
ImVec4 Rainbow(double &static_ratio, double step = 0.01);
ImVec4 Gradient2(ImVec4 col1, ImVec4 col2, double &static_ratio, double step = 0.01);
ImVec4 Gradient3(ImVec4 col1, ImVec4 col2, ImVec4 col3, double &static_ratio, double step = 0.01);
//Rainbow
static double s0 = 0.0;
ImGui::PushStyleColor(ImGuiCol_Button, ImCandy::Rainbow(s0));
//Gradient2
static double s1 = 0.0;
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImCandy::Gradient2(IV4_VIOLET, IV4_BUBBLEGUM, s1));
- Blender Dark [Improvised]
ImCandy::Theme_Blender();
- Cyberpunk Neon [Improvised]
ImCandy::Theme_Cyberpunk();
- Nord/Nordic GTK [Improvised]
ImCandy::Theme_Nord();
Submit your own themes by opening an issue or pull request.