/ImguiCandy

Color utils, Themes and other cool stuff for Dear ImGui

Primary LanguageC++MIT LicenseMIT

ImguiCandy

Color utils, Themes and other cool stuff for Dear ImGui

Usage

#include "candy.h"

Utils

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);

Example

  //Rainbow
  static double s0 = 0.0;
  ImGui::PushStyleColor(ImGuiCol_Button, ImCandy::Rainbow(s0));

rainbow

  //Gradient2
  static double s1 = 0.0;
  ImGui::PushStyleColor(ImGuiCol_WindowBg, ImCandy::Gradient2(IV4_VIOLET, IV4_BUBBLEGUM, s1));

gradient

Themes

  • Blender Dark [Improvised]
  ImCandy::Theme_Blender();

blender

  • Cyberpunk Neon [Improvised]
  ImCandy::Theme_Cyberpunk();

cyberpunk

  • Nord/Nordic GTK [Improvised]
  ImCandy::Theme_Nord();

nord

Contribute

Submit your own themes by opening an issue or pull request.