Examples: Using Dark theme by default. (#707). Tweaked demo code.

This commit is contained in:
omar
2018-01-31 00:15:47 +01:00
parent 596b6d6de2
commit cca9c3e3da
11 changed files with 192 additions and 112 deletions

View File

@ -1979,7 +1979,7 @@ void ImGui::ShowDemoWindow(bool* p_open)
// Here we use the simplified Combo() api that packs items into a single literal string. Useful for quick combo boxes where the choices are known locally.
bool ImGui::ShowStyleSelector(const char* label)
{
static int style_idx = 0;
static int style_idx = -1;
if (ImGui::Combo(label, &style_idx, "Classic\0Dark\0Light\0"))
{
switch (style_idx)