Skip to content

Instantly share code, notes, and snippets.

@yknishidate
Last active May 14, 2022 01:53
Show Gist options
  • Save yknishidate/48642681c3c093dded4c20b4f6175445 to your computer and use it in GitHub Desktop.
Save yknishidate/48642681c3c093dded4c20b4f6175445 to your computer and use it in GitHub Desktop.
ImGui::StyleColorsDark();
ImVec4 red80 = ImVec4(0.8f, 0.0f, 0.0f, 1.0f);
ImVec4 red60 = ImVec4(0.6f, 0.0f, 0.0f, 1.0f);
ImVec4 red40 = ImVec4(0.4f, 0.0f, 0.0f, 1.0f);
ImVec4 black100 = ImVec4(0.0f, 0.0f, 0.0f, 1.0f);
ImVec4 black90 = ImVec4(0.1f, 0.1f, 0.1f, 1.0f);
ImVec4 black80 = ImVec4(0.2f, 0.2f, 0.2f, 1.0f);
ImVec4 black60 = ImVec4(0.4f, 0.4f, 0.4f, 1.0f);
ImGuiStyle& style = ImGui::GetStyle();
style.Colors[ImGuiCol_WindowBg] = black90;
style.Colors[ImGuiCol_TitleBg] = red80;
style.Colors[ImGuiCol_TitleBgActive] = red80;
style.Colors[ImGuiCol_MenuBarBg] = red40;
style.Colors[ImGuiCol_Header] = red40;
style.Colors[ImGuiCol_HeaderActive] = red40;
style.Colors[ImGuiCol_HeaderHovered] = red40;
style.Colors[ImGuiCol_FrameBg] = black100;
style.Colors[ImGuiCol_FrameBgHovered] = black80;
style.Colors[ImGuiCol_FrameBgActive] = black60;
style.Colors[ImGuiCol_CheckMark] = red80;
style.Colors[ImGuiCol_SliderGrab] = red40;
style.Colors[ImGuiCol_SliderGrabActive] = red80;
style.Colors[ImGuiCol_Button] = red40;
style.Colors[ImGuiCol_ButtonHovered] = red60;
style.Colors[ImGuiCol_ButtonActive] = red80;
style.Colors[ImGuiCol_ResizeGrip] = red40;
style.Colors[ImGuiCol_ResizeGripHovered] = red60;
style.Colors[ImGuiCol_ResizeGripActive] = red80;
@yknishidate
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment