- Status
- Offline
- Joined
- Mar 16, 2021
- Messages
- 8
- Reaction score
- 2
Hello! At this thread i will show you how to change your style's in your menu using ImGui. You can use ready-made styles that posted here:
If need to make your own style you need to customizing the style for the elements and customizing the color of the styles with these two functions:
The first function can change your menu styles like a window rounding.
Second function using for change color styles. Example
All function arguments and their possible meanings can be found in the official imgui documentation.
ImVec4 is the color variable. ImVec2 is position variable.
For example. Making a purple window backround and center title bar:
The ImVec4 arguments is RGB color with a Alpha. First three float variable's is RGB, last float variable is Alpha value.

To make blue text color use
It's very simple. Then you can make your own color styles.
You cant view this link please login.
If need to make your own style you need to customizing the style for the elements and customizing the color of the styles with these two functions:
ImGui::GetStyle().
// And
ImVec4* colors = ImGui::GetStyle().Colors;
colors[ImGuiCol_Text]
The first function can change your menu styles like a window rounding.
ImGui::GetStyle().WindowRounding = 0.0f;
Second function using for change color styles. Example
colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 0.95f);
All function arguments and their possible meanings can be found in the official imgui documentation.
ImVec4 is the color variable. ImVec2 is position variable.
For example. Making a purple window backround and center title bar:
ImGui::GetStyle().WindowTitleAlign = ImVec2(0.5, 0.5);
colors[ImGuiCol_WindowBg] = ImVec4(0.39f, 0.00f, 0.63f, 0.11f);
The ImVec4 arguments is RGB color with a Alpha. First three float variable's is RGB, last float variable is Alpha value.

To make blue text color use
colors[ImGuiCol_Text] = ImVec4(0.0f, 0.31f, 0.56f, 1.0f);
It's very simple. Then you can make your own color styles.