-
Автор темы
- #1
I dont like blue color i want to change like green,orange etc. etc. how can i change (i edited here
but nothing changed
C++:
void ImGui::StyleColorsCheat(ImGuiStyle* dst)
{
ImGuiStyle* style = dst ? dst : &ImGui::GetStyle();
ImVec4* colors = style->Colors;
colors[ImGuiCol_Text] = ImVec4(255 / 255.f, 255 / 255.f, 255/ 255.f, 1.00f);
colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f);
colors[ImGuiCol_WindowBg] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_ChildBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImGuiCol_ChildBg] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_PopupBg] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_Border] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
colors[ImGuiCol_FrameBg] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_FrameBgHovered] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.00f);
colors[ImGuiCol_FrameBgActive] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.00f);
colors[ImGuiCol_TitleBg] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_TitleBgActive] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_TitleBgCollapsed] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.00f);
colors[ImGuiCol_MenuBarBg] = ImVec4(0.7f, 0.7f, 0.7f, 1.f);
colors[ImGuiCol_FrameBgActive] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.f);
colors[ImGuiCol_ScrollbarGrab] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.f); /
colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.f);
colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.f);
colors[ImGuiCol_CheckMark] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.f);
colors[ImGuiCol_SliderGrab] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.f);
colors[ImGuiCol_SliderGrabActive] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.f);
colors[ImGuiCol_Button] = ImVec4(14 / 255.f, 14 / 255.f, 14 / 255.f, 1.f); //z
colors[ImGuiCol_ButtonHovered] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.f);
colors[ImGuiCol_ButtonActive] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.f);
colors[ImGuiCol_Header] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.f); //a
colors[ImGuiCol_HeaderHovered] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.f); //au
colors[ImGuiCol_HeaderActive] = ImVec4(20 / 255.f, 20 / 255.f, 20 / 255.f, 1.f); //a
colors[ImGuiCol_Separator] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.00f); //
colors[ImGuiCol_SeparatorHovered] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.00f);//
colors[ImGuiCol_SeparatorActive] = ImVec4(58 / 255.f, 144 / 255.f, 53 / 255.f, 1.00f); //s
colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImGuiCol_ResizeGripHovered] = ImVec4(1.0f,1.0f, 1.00f, 1.00f);
colors[ImGuiCol_ResizeGripActive] = ImVec4(1.0f, 1.0f, 1.00f, 1.00f);
colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 1.00f);
colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered];
colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 1.00f);
colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 1.00f);
colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 1.00f);
colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.7f, 0.70f, 0.7f, 1.00f);
colors[ImGuiCol_PlotHistogram] = ImVec4(0.7f, 0.70f, 0.7f, 1.00f);
colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.7f, 0.7f, 1.00f);
colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 1.0f);
colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 1.0f);
colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered];
colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 1.0f);
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.7f, 0.7f, 0.7f, 1.0f);
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.7f, 0.7f, 0.7f, 1.0f);
style->Alpha = 5.f;
style->AntiAliasedFill = true;
style->ButtonTextAlign = ImVec2(0.5f, 0.5f);
style->ChildBorderSize = 1.f;
style->ChildRounding = 1.5f;
style->FrameBorderSize = 0.5f;
style->FramePadding = ImVec2(1.5f, 1.5f);
style->FrameRounding = 1.5f;
style->GrabMinSize = 0.5f;
style->GrabRounding = 1.5f;
style->ItemInnerSpacing = ImVec2(6, 2.7f);
style->ItemSpacing = ImVec2(8.f, 9.f);
style->PopupBorderSize = 0.8f;
style->PopupRounding = 0.5f;
style->ScrollbarSize = 2.5f;
style->ScrollbarRounding = 1.5f;
style->SelectableTextAlign = ImVec2(0.5f, 0.5f);
style->WindowBorderSize = 0.f;
style->WindowMinSize = ImVec2(6.f, 6.f);
style->WindowPadding = ImVec2(0.f, 0.f);
style->WindowRounding = 1.5f;
}
Последнее редактирование: