Unravel Engine C++ Reference
Loading...
Searching...
No Matches
imgui_style.cpp
Go to the documentation of this file.
1#include "imgui_style.h"
2#include <imgui/imgui.h>
3
4namespace imgui_style
5{
6
8{
9 // Photoshop style by Derydoca from ImThemes
10 ImGuiStyle& style = ImGui::GetStyle();
11
12 style.Alpha = 1.0f;
13 style.DisabledAlpha = 0.6000000238418579f;
14 style.WindowPadding = ImVec2(8.0f, 8.0f);
15 style.WindowRounding = 4.0f;
16 style.WindowBorderSize = 1.0f;
17 style.WindowMinSize = ImVec2(32.0f, 32.0f);
18 style.WindowTitleAlign = ImVec2(0.0f, 0.5f);
19 style.WindowMenuButtonPosition = ImGuiDir_Left;
20 style.ChildRounding = 4.0f;
21 style.ChildBorderSize = 1.0f;
22 style.PopupRounding = 2.0f;
23 style.PopupBorderSize = 1.0f;
24 style.FramePadding = ImVec2(4.0f, 3.0f);
25 style.FrameRounding = 2.0f;
26 style.FrameBorderSize = 1.0f;
27 style.ItemSpacing = ImVec2(8.0f, 4.0f);
28 style.ItemInnerSpacing = ImVec2(4.0f, 4.0f);
29 style.CellPadding = ImVec2(4.0f, 2.0f);
30 style.IndentSpacing = 21.0f;
31 style.ColumnsMinSpacing = 6.0f;
32 style.ScrollbarSize = 13.0f;
33 style.ScrollbarRounding = 12.0f;
34 style.GrabMinSize = 7.0f;
35 style.GrabRounding = 0.0f;
36 style.TabRounding = 0.0f;
37 style.TabBorderSize = 1.0f;
38 style.TabCloseButtonMinWidthUnselected = 0.0f;
39 style.ColorButtonPosition = ImGuiDir_Right;
40 style.ButtonTextAlign = ImVec2(0.5f, 0.5f);
41 style.SelectableTextAlign = ImVec2(0.0f, 0.0f);
42
43 style.Colors[ImGuiCol_Text] = ImVec4(1.0f, 1.0f, 1.0f, 1.0f);
44 style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.4980392158031464f, 0.4980392158031464f, 0.4980392158031464f, 1.0f);
45 style.Colors[ImGuiCol_WindowBg] = ImVec4(0.1764705926179886f, 0.1764705926179886f, 0.1764705926179886f, 1.0f);
46 style.Colors[ImGuiCol_ChildBg] = ImVec4(0.2784313857555389f, 0.2784313857555389f, 0.2784313857555389f, 0.0f);
47 style.Colors[ImGuiCol_PopupBg] = ImVec4(0.3098039329051971f, 0.3098039329051971f, 0.3098039329051971f, 1.0f);
48 style.Colors[ImGuiCol_Border] = ImVec4(0.2627451121807098f, 0.2627451121807098f, 0.2627451121807098f, 1.0f);
49 style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
50 style.Colors[ImGuiCol_FrameBg] = ImVec4(0.1568627506494522f, 0.1568627506494522f, 0.1568627506494522f, 1.0f);
51 style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.2000000029802322f, 0.2000000029802322f, 0.2000000029802322f, 1.0f);
52 style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.2784313857555389f, 0.2784313857555389f, 0.2784313857555389f, 1.0f);
53 style.Colors[ImGuiCol_TitleBg] = ImVec4(0.1450980454683304f, 0.1450980454683304f, 0.1450980454683304f, 1.0f);
54 style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.1450980454683304f, 0.1450980454683304f, 0.1450980454683304f, 1.0f);
55 style.Colors[ImGuiCol_TitleBgCollapsed] =
56 ImVec4(0.1450980454683304f, 0.1450980454683304f, 0.1450980454683304f, 1.0f);
57 style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.1921568661928177f, 0.1921568661928177f, 0.1921568661928177f, 1.0f);
58 style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.1568627506494522f, 0.1568627506494522f, 0.1568627506494522f, 1.0f);
59 style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.2745098173618317f, 0.2745098173618317f, 0.2745098173618317f, 1.0f);
60 style.Colors[ImGuiCol_ScrollbarGrabHovered] =
61 ImVec4(0.2980392277240753f, 0.2980392277240753f, 0.2980392277240753f, 1.0f);
62 style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
63 style.Colors[ImGuiCol_CheckMark] = ImVec4(1.0f, 1.0f, 1.0f, 1.0f);
64 style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.3882353007793427f, 0.3882353007793427f, 0.3882353007793427f, 1.0f);
65 style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
66 style.Colors[ImGuiCol_Button] = ImVec4(1.0f, 1.0f, 1.0f, 0.0f);
67 style.Colors[ImGuiCol_ButtonHovered] = ImVec4(1.0f, 1.0f, 1.0f, 0.1560000032186508f);
68 style.Colors[ImGuiCol_ButtonActive] = ImVec4(1.0f, 1.0f, 1.0f, 0.3910000026226044f);
69 style.Colors[ImGuiCol_Header] = ImVec4(0.3098039329051971f, 0.3098039329051971f, 0.3098039329051971f, 1.0f);
70 style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.4666666686534882f, 0.4666666686534882f, 0.4666666686534882f, 1.0f);
71 style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.4666666686534882f, 0.4666666686534882f, 0.4666666686534882f, 1.0f);
72 style.Colors[ImGuiCol_Separator] = ImVec4(0.2627451121807098f, 0.2627451121807098f, 0.2627451121807098f, 1.0f);
73 style.Colors[ImGuiCol_SeparatorHovered] =
74 ImVec4(0.3882353007793427f, 0.3882353007793427f, 0.3882353007793427f, 1.0f);
75 style.Colors[ImGuiCol_SeparatorActive] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
76 style.Colors[ImGuiCol_ResizeGrip] = ImVec4(1.0f, 1.0f, 1.0f, 0.25f);
77 style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(1.0f, 1.0f, 1.0f, 0.6700000166893005f);
78 style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
79 style.Colors[ImGuiCol_Tab] = ImVec4(0.09411764889955521f, 0.09411764889955521f, 0.09411764889955521f, 1.0f);
80 style.Colors[ImGuiCol_TabHovered] = ImVec4(0.3490196168422699f, 0.3490196168422699f, 0.3490196168422699f, 1.0f);
81 style.Colors[ImGuiCol_TabSelected] = ImVec4(0.1921568661928177f, 0.1921568661928177f, 0.1921568661928177f, 1.0f);
82 style.Colors[ImGuiCol_TabDimmed] = ImVec4(0.09411764889955521f, 0.09411764889955521f, 0.09411764889955521f, 1.0f);
83 style.Colors[ImGuiCol_TabDimmedSelected] =
84 ImVec4(0.1921568661928177f, 0.1921568661928177f, 0.1921568661928177f, 1.0f);
85 style.Colors[ImGuiCol_PlotLines] = ImVec4(0.4666666686534882f, 0.4666666686534882f, 0.4666666686534882f, 1.0f);
86 style.Colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
87 style.Colors[ImGuiCol_PlotHistogram] = ImVec4(0.5843137502670288f, 0.5843137502670288f, 0.5843137502670288f, 1.0f);
88 style.Colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
89 style.Colors[ImGuiCol_TableHeaderBg] = ImVec4(0.1882352977991104f, 0.1882352977991104f, 0.2000000029802322f, 1.0f);
90 style.Colors[ImGuiCol_TableBorderStrong] =
91 ImVec4(0.3098039329051971f, 0.3098039329051971f, 0.3490196168422699f, 1.0f);
92 style.Colors[ImGuiCol_TableBorderLight] =
93 ImVec4(0.2274509817361832f, 0.2274509817361832f, 0.2470588237047195f, 1.0f);
94 style.Colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
95 style.Colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.05999999865889549f);
96 style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(1.0f, 1.0f, 1.0f, 0.1560000032186508f);
97 style.Colors[ImGuiCol_DragDropTarget] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
98 style.Colors[ImGuiCol_NavCursor] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
99 style.Colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.0f, 0.3882353007793427f, 0.0f, 1.0f);
100 style.Colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.5860000252723694f);
101 style.Colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.5860000252723694f);
102}
103
105{
106 ImGuiIO& io = ImGui::GetIO();
107
108 ImGui::StyleColorsDark();
109
110 auto& style = ImGui::GetStyle();
111 auto& colors = ImGui::GetStyle().Colors;
112
113 auto accent = ImColor(236, 158, 36, 255);
114 auto highlight = ImColor(39, 185, 242, 255);
115 auto niceBlue = ImColor(83, 232, 254, 255);
116 auto compliment = ImColor(78, 151, 166, 255);
117 auto background = ImColor(36, 36, 36, 255);
118 auto backgroundDark = ImColor(26, 26, 26, 255);
119 auto titlebar = ImColor(21, 21, 21, 255);
120 auto titlebarOrange = ImColor(186, 66, 30, 255);
121 auto titlebarGreen = ImColor(18, 88, 30, 255);
122 auto titlebarRed = ImColor(185, 30, 30, 255);
123 auto propertyField = ImColor(15, 15, 15, 255);
124 auto text = ImColor(255, 255, 255, 255);
125 auto textBrighter = ImColor(210, 210, 210, 255);
126 auto textDarker = ImColor(128, 128, 128, 255);
127 auto textError = ImColor(230, 51, 51, 255);
128 auto muted = ImColor(77, 77, 77, 255);
129 auto groupHeader = ImColor(47, 47, 47, 255);
130 auto selection = ImColor(237, 192, 119, 255);
131 auto selectionMuted = ImColor(237, 201, 142, 23);
132 auto backgroundPopup = ImColor(50, 50, 50, 255);
133 auto validPrefab = ImColor(82, 179, 222, 255);
134 auto invalidPrefab = ImColor(222, 43, 43, 255);
135 auto missingMesh = ImColor(230, 102, 76, 255);
136 auto meshNotSet = ImColor(250, 101, 23, 255);
137
138 colors[ImGuiCol_Header] = groupHeader;
139 colors[ImGuiCol_HeaderHovered] = groupHeader;
140 colors[ImGuiCol_HeaderActive] = groupHeader;
141
142 colors[ImGuiCol_Button] = ImColor(56, 56, 56, 200);
143 colors[ImGuiCol_ButtonHovered] = ImColor(70, 70, 70, 255);
144 colors[ImGuiCol_ButtonActive] = ImColor(56, 56, 56, 150);
145
146 colors[ImGuiCol_FrameBg] = propertyField;
147 colors[ImGuiCol_FrameBgHovered] = propertyField;
148 colors[ImGuiCol_FrameBgActive] = propertyField;
149
150 colors[ImGuiCol_Tab] = titlebar;
151 colors[ImGuiCol_TabHovered] = ImColor(255, 225, 135, 30);
152 colors[ImGuiCol_TabSelected] = ImColor(255, 225, 135, 60);
153 colors[ImGuiCol_TabDimmed] = titlebar;
154 colors[ImGuiCol_TabDimmedSelected] = colors[ImGuiCol_TabHovered];
155
156 colors[ImGuiCol_TitleBg] = titlebar;
157 colors[ImGuiCol_TitleBgActive] = titlebar;
158 colors[ImGuiCol_TitleBgCollapsed] = ImVec4{0.15f, 0.1505f, 0.151f, 1.0f};
159
160 colors[ImGuiCol_ResizeGrip] = ImVec4(0.91f, 0.91f, 0.91f, 0.25f);
161 colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.81f, 0.81f, 0.81f, 0.67f);
162 colors[ImGuiCol_ResizeGripActive] = ImVec4(0.46f, 0.46f, 0.46f, 0.95f);
163
164 colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f);
165 colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.0f);
166 colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.0f);
167 colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.0f);
168
169 colors[ImGuiCol_CheckMark] = ImColor(200, 200, 200, 255);
170
171 colors[ImGuiCol_SliderGrab] = ImVec4(0.51f, 0.51f, 0.51f, 0.7f);
172 colors[ImGuiCol_SliderGrabActive] = ImVec4(0.66f, 0.66f, 0.66f, 1.0f);
173
174 colors[ImGuiCol_Text] = text;
175
176 colors[ImGuiCol_CheckMark] = text;
177
178 colors[ImGuiCol_Separator] = backgroundDark;
179 colors[ImGuiCol_SeparatorActive] = highlight;
180 colors[ImGuiCol_SeparatorHovered] = ImColor(39, 185, 242, 150);
181
182 colors[ImGuiCol_WindowBg] = titlebar;
183 colors[ImGuiCol_ChildBg] = background;
184 colors[ImGuiCol_PopupBg] = backgroundPopup;
185 colors[ImGuiCol_Border] = backgroundDark;
186
187 colors[ImGuiCol_TableHeaderBg] = groupHeader;
188 colors[ImGuiCol_TableBorderLight] = backgroundDark;
189
190 colors[ImGuiCol_MenuBarBg] = ImVec4{0.0f, 0.0f, 0.0f, 0.0f};
191
192 style.FrameRounding = 2.5f;
193 style.FrameBorderSize = 1.0f;
194 style.IndentSpacing = 11.0f;
195
196 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
197 {
198 style.WindowRounding = 0.0f;
199 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
200 }
201 style.Colors[ImGuiCol_WindowBg] = ImVec4(0.15f, 0.15f, 0.15f, style.Colors[ImGuiCol_WindowBg].w);
202}
203
205{
206 ImGuiIO& io = ImGui::GetIO();
207 ImGuiStyle& style = ImGui::GetStyle();
208 ImVec4* colors = ImGui::GetStyle().Colors;
209 style.FrameBorderSize = 1.0f;
210 style.PopupBorderSize = 1.0f;
211 style.TabRounding = 3.0f;
212 style.PopupRounding = 3.0f;
213 style.FrameRounding = 3.0f;
214 style.FramePadding = ImVec2(8, 2);
215 style.WindowPadding = ImVec2(8, 8);
216 style.CellPadding = ImVec2(9, 2);
217 style.ChildBorderSize = 1.0f;
218 style.WindowBorderSize = 1.0f;
219 style.WindowMenuButtonPosition = ImGuiDir_None;
220 colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);
221 colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f);
222 colors[ImGuiCol_WindowBg] = ImVec4(0.15f, 0.15f, 0.15f, 1.00f);
223 colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
224 colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 1.00f);
225 colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
226 colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
227 colors[ImGuiCol_FrameBg] = ImVec4(0.04f, 0.04f, 0.04f, 0.54f);
228 colors[ImGuiCol_FrameBgHovered] = ImVec4(0.44f, 0.26f, 0.26f, 1.00f);
229 colors[ImGuiCol_FrameBgActive] = ImVec4(0.47f, 0.19f, 0.19f, 1.00f);
230 colors[ImGuiCol_TitleBg] = ImVec4(0.06f, 0.06f, 0.06f, 1.00f);
231 colors[ImGuiCol_TitleBgActive] = ImVec4(0.06f, 0.06f, 0.06f, 1.00f);
232 colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.06f, 0.06f, 0.06f, 1.00f);
233 colors[ImGuiCol_MenuBarBg] = ImVec4(0.11f, 0.11f, 0.11f, 1.00f);
234 colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f);
235 colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.15f, 0.15f, 0.15f, 1.00f);
236 colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.23f, 0.23f, 0.23f, 1.00f);
237 colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.30f, 0.30f, 0.30f, 1.00f);
238 colors[ImGuiCol_CheckMark] = ImVec4(0.47f, 0.19f, 0.19f, 1.00f);
239 colors[ImGuiCol_SliderGrab] = ImVec4(0.47f, 0.19f, 0.19f, 1.00f);
240 colors[ImGuiCol_SliderGrabActive] = ImVec4(0.74f, 0.74f, 0.74f, 1.00f);
241 colors[ImGuiCol_Button] = ImVec4(0.23f, 0.23f, 0.23f, 1.00f);
242 colors[ImGuiCol_ButtonHovered] = ImVec4(0.35f, 0.49f, 0.62f, 1.00f);
243 colors[ImGuiCol_ButtonActive] = ImVec4(0.24f, 0.37f, 0.53f, 1.00f);
244 colors[ImGuiCol_Header] = ImVec4(0.47f, 0.19f, 0.19f, 1.00f);
245 colors[ImGuiCol_HeaderHovered] = ImVec4(0.43f, 0.24f, 0.24f, 1.00f);
246 colors[ImGuiCol_HeaderActive] = ImVec4(0.49f, 0.32f, 0.32f, 1.00f);
247 colors[ImGuiCol_Separator] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
248 colors[ImGuiCol_SeparatorHovered] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
249 colors[ImGuiCol_SeparatorActive] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);
250 colors[ImGuiCol_ResizeGrip] = ImVec4(0.44f, 0.44f, 0.44f, 1.00f);
251 colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.58f, 0.58f, 0.58f, 1.00f);
252 colors[ImGuiCol_ResizeGripActive] = ImVec4(0.73f, 0.73f, 0.73f, 1.00f);
253 colors[ImGuiCol_Tab] = ImVec4(0.12f, 0.12f, 0.12f, 1.00f);
254 colors[ImGuiCol_TabHovered] = ImVec4(0.24f, 0.25f, 0.26f, 1.00f);
255 colors[ImGuiCol_TabSelected] = ImVec4(0.18f, 0.18f, 0.18f, 1.00f);
256 colors[ImGuiCol_TabDimmed] = ImVec4(0.11f, 0.11f, 0.11f, 1.00f);
257 colors[ImGuiCol_TabDimmedSelected] = ImVec4(0.18f, 0.18f, 0.18f, 1.00f);
258 colors[ImGuiCol_DockingPreview] = ImVec4(0.47f, 0.19f, 0.19f, 1.00f);
259 colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.08f, 0.08f, 0.08f, 1.00f);
260 colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f);
261 colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);
262 colors[ImGuiCol_PlotHistogram] = ImVec4(0.69f, 0.15f, 0.29f, 1.00f);
263 colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);
264 colors[ImGuiCol_TableHeaderBg] = ImVec4(0.19f, 0.19f, 0.20f, 1.00f);
265 colors[ImGuiCol_TableBorderStrong] = ImVec4(0.16f, 0.16f, 0.16f, 1.00f);
266 colors[ImGuiCol_TableBorderLight] = ImVec4(0.23f, 0.23f, 0.25f, 1.00f);
267 colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);
268 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.06f);
269 colors[ImGuiCol_TextSelectedBg] = ImVec4(0.47f, 0.20f, 0.20f, 0.71f);
270 colors[ImGuiCol_DragDropTarget] = ImVec4(0.58f, 0.23f, 0.23f, 0.71f);
271 colors[ImGuiCol_NavCursor] = ImVec4(0.28f, 0.28f, 0.28f, 1.00f);
272 colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f);
273 colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f);
274 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.61f);
275
276 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
277 {
278 style.WindowRounding = 0.0f;
279 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
280 }
281}
282
284{
285 ImGuiIO& io = ImGui::GetIO();
286
287 ImGui::StyleColorsDark();
288
289 auto& style = ImGui::GetStyle();
290 auto& colors = ImGui::GetStyle().Colors;
291
292 auto backgroundDeepest = ImColor(16, 20, 26, 255);
293 auto backgroundDeep = ImColor(22, 27, 34, 255);
294 auto backgroundMedium = ImColor(32, 39, 49, 255);
295 auto backgroundElevated = ImColor(42, 51, 64, 255);
296 auto backgroundPopup = ImColor(26, 32, 41, 255);
297
298 auto primaryAccent = ImColor(78, 205, 196, 255);
299 auto primaryAccentHover = ImColor(88, 215, 206, 255);
300 auto primaryAccentActive = ImColor(68, 185, 176, 255);
301 auto primaryAccentMuted = ImColor(78, 205, 196, 80);
302
303 auto secondaryAccent = ImColor(249, 202, 36, 255);
304 auto secondaryAccentHover = ImColor(255, 212, 46, 255);
305 auto secondaryAccentMuted = ImColor(249, 202, 36, 60);
306
307 auto textPrimary = ImColor(248, 248, 248, 255);
308 auto textMuted = ImColor(140, 140, 140, 255);
309
310 auto borderLight = ImColor(52, 61, 74, 255);
311 auto borderMedium = ImColor(42, 51, 64, 255);
312 auto borderDark = ImColor(22, 27, 34, 255);
313
314 colors[ImGuiCol_WindowBg] = backgroundDeep;
315 colors[ImGuiCol_ChildBg] = backgroundMedium;
316 colors[ImGuiCol_PopupBg] = backgroundPopup;
317 colors[ImGuiCol_Border] = borderMedium;
318 colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
319 colors[ImGuiCol_MenuBarBg] = backgroundDeepest;
320
321 colors[ImGuiCol_Text] = textPrimary;
322 colors[ImGuiCol_TextDisabled] = textMuted;
323 colors[ImGuiCol_TextSelectedBg] = primaryAccentMuted;
324
325 colors[ImGuiCol_Button] = backgroundElevated;
326 colors[ImGuiCol_ButtonHovered] = primaryAccentMuted;
327 colors[ImGuiCol_ButtonActive] = primaryAccentActive;
328
329 colors[ImGuiCol_Header] = backgroundElevated;
330 colors[ImGuiCol_HeaderHovered] = primaryAccentMuted;
331 colors[ImGuiCol_HeaderActive] = primaryAccent;
332
333 colors[ImGuiCol_FrameBg] = backgroundMedium;
334 colors[ImGuiCol_FrameBgHovered] = backgroundElevated;
335 colors[ImGuiCol_FrameBgActive] = primaryAccentMuted;
336
337 colors[ImGuiCol_TitleBg] = backgroundDeepest;
338 colors[ImGuiCol_TitleBgActive] = backgroundDeep;
339 colors[ImGuiCol_TitleBgCollapsed] = backgroundDeepest;
340
341 colors[ImGuiCol_Tab] = backgroundDeep;
342 colors[ImGuiCol_TabHovered] = primaryAccentMuted;
343 colors[ImGuiCol_TabSelected] = primaryAccent;
344 colors[ImGuiCol_TabDimmed] = backgroundDeepest;
345 colors[ImGuiCol_TabDimmedSelected] = backgroundElevated;
346
347 colors[ImGuiCol_ScrollbarBg] = backgroundDeep;
348 colors[ImGuiCol_ScrollbarGrab] = backgroundElevated;
349 colors[ImGuiCol_ScrollbarGrabHovered] = primaryAccentMuted;
350 colors[ImGuiCol_ScrollbarGrabActive] = primaryAccent;
351
352 colors[ImGuiCol_SliderGrab] = primaryAccent;
353 colors[ImGuiCol_SliderGrabActive] = primaryAccentHover;
354
355 colors[ImGuiCol_CheckMark] = primaryAccent;
356
357 colors[ImGuiCol_Separator] = borderDark;
358 colors[ImGuiCol_SeparatorHovered] = primaryAccentMuted;
359 colors[ImGuiCol_SeparatorActive] = primaryAccent;
360
361 colors[ImGuiCol_ResizeGrip] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
362 colors[ImGuiCol_ResizeGripHovered] = primaryAccentMuted;
363 colors[ImGuiCol_ResizeGripActive] = primaryAccent;
364
365 colors[ImGuiCol_TableHeaderBg] = backgroundElevated;
366 colors[ImGuiCol_TableBorderStrong] = borderMedium;
367 colors[ImGuiCol_TableBorderLight] = borderLight;
368 colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
369 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.03f);
370
371 colors[ImGuiCol_DockingPreview] = primaryAccentMuted;
372 colors[ImGuiCol_DockingEmptyBg] = backgroundDeepest;
373
374 colors[ImGuiCol_PlotLines] = primaryAccent;
375 colors[ImGuiCol_PlotLinesHovered] = primaryAccentHover;
376 colors[ImGuiCol_PlotHistogram] = secondaryAccent;
377 colors[ImGuiCol_PlotHistogramHovered] = secondaryAccentHover;
378
379 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.6f);
380
381 style.WindowRounding = 6.0f;
382 style.ChildRounding = 4.0f;
383 style.FrameRounding = 4.0f;
384 style.PopupRounding = 6.0f;
385 style.ScrollbarRounding = 8.0f;
386 style.GrabRounding = 4.0f;
387 style.TabRounding = 4.0f;
388
389 style.WindowBorderSize = 1.0f;
390 style.ChildBorderSize = 1.0f;
391 style.PopupBorderSize = 1.0f;
392 style.FrameBorderSize = 1.0f;
393
394 style.WindowPadding = ImVec2(12.0f, 12.0f);
395 style.FramePadding = ImVec2(10.0f, 6.0f);
396 style.CellPadding = ImVec2(8.0f, 4.0f);
397 style.ItemSpacing = ImVec2(8.0f, 6.0f);
398 style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
399 style.IndentSpacing = 20.0f;
400 style.ScrollbarSize = 16.0f;
401 style.GrabMinSize = 12.0f;
402
403 style.WindowMenuButtonPosition = ImGuiDir_None;
404
405 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
406 {
407 style.WindowRounding = 0.0f;
408 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
409 }
410}
411
413{
414 ImGuiIO& io = ImGui::GetIO();
415 ImGui::StyleColorsDark();
416
417 auto& style = ImGui::GetStyle();
418 auto& colors = ImGui::GetStyle().Colors;
419}
420
422{
423 ImGuiIO& io = ImGui::GetIO();
424 ImGui::StyleColorsDark();
425
426 auto& style = ImGui::GetStyle();
427 auto& colors = ImGui::GetStyle().Colors;
428
429 auto backgroundDarkest = ImColor(20, 15, 25, 255);
430 auto backgroundDark = ImColor(28, 22, 35, 255);
431 auto backgroundMedium = ImColor(38, 30, 48, 255);
432 auto backgroundLight = ImColor(48, 38, 58, 255);
433 auto backgroundPopup = ImColor(25, 20, 30, 255);
434
435 auto primaryAccent = ImColor(147, 112, 219, 255);
436 auto primaryAccentHover = ImColor(157, 122, 229, 255);
437 auto primaryAccentActive = ImColor(137, 102, 209, 255);
438 auto primaryAccentMuted = ImColor(147, 112, 219, 90);
439
440 auto secondaryAccent = ImColor(255, 182, 193, 255);
441 auto secondaryAccentMuted = ImColor(255, 182, 193, 60);
442
443 auto textPrimary = ImColor(245, 240, 250, 255);
444 auto textMuted = ImColor(140, 130, 150, 255);
445
446 auto borderColor = ImColor(15, 10, 20, 255);
447 auto borderLight = ImColor(58, 48, 68, 255);
448
449 colors[ImGuiCol_WindowBg] = backgroundDark;
450 colors[ImGuiCol_ChildBg] = backgroundMedium;
451 colors[ImGuiCol_PopupBg] = backgroundPopup;
452 colors[ImGuiCol_Border] = borderColor;
453 colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
454 colors[ImGuiCol_MenuBarBg] = backgroundDarkest;
455
456 colors[ImGuiCol_Text] = textPrimary;
457 colors[ImGuiCol_TextDisabled] = textMuted;
458 colors[ImGuiCol_TextSelectedBg] = primaryAccentMuted;
459
460 colors[ImGuiCol_Button] = backgroundLight;
461 colors[ImGuiCol_ButtonHovered] = primaryAccentMuted;
462 colors[ImGuiCol_ButtonActive] = primaryAccentActive;
463
464 colors[ImGuiCol_Header] = backgroundLight;
465 colors[ImGuiCol_HeaderHovered] = primaryAccentMuted;
466 colors[ImGuiCol_HeaderActive] = primaryAccent;
467
468 colors[ImGuiCol_FrameBg] = backgroundMedium;
469 colors[ImGuiCol_FrameBgHovered] = backgroundLight;
470 colors[ImGuiCol_FrameBgActive] = primaryAccentMuted;
471
472 colors[ImGuiCol_TitleBg] = backgroundDarkest;
473 colors[ImGuiCol_TitleBgActive] = backgroundDark;
474 colors[ImGuiCol_TitleBgCollapsed] = backgroundDarkest;
475
476 colors[ImGuiCol_Tab] = backgroundDark;
477 colors[ImGuiCol_TabHovered] = primaryAccentMuted;
478 colors[ImGuiCol_TabSelected] = primaryAccent;
479 colors[ImGuiCol_TabDimmed] = backgroundDarkest;
480 colors[ImGuiCol_TabDimmedSelected] = backgroundLight;
481
482 colors[ImGuiCol_ScrollbarBg] = backgroundDark;
483 colors[ImGuiCol_ScrollbarGrab] = backgroundLight;
484 colors[ImGuiCol_ScrollbarGrabHovered] = primaryAccentMuted;
485 colors[ImGuiCol_ScrollbarGrabActive] = primaryAccent;
486
487 colors[ImGuiCol_CheckMark] = primaryAccent;
488 colors[ImGuiCol_SliderGrab] = primaryAccent;
489 colors[ImGuiCol_SliderGrabActive] = primaryAccentHover;
490
491 colors[ImGuiCol_Separator] = borderColor;
492 colors[ImGuiCol_SeparatorHovered] = borderLight;
493 colors[ImGuiCol_SeparatorActive] = primaryAccent;
494
495 colors[ImGuiCol_ResizeGrip] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
496 colors[ImGuiCol_ResizeGripHovered] = primaryAccentMuted;
497 colors[ImGuiCol_ResizeGripActive] = primaryAccent;
498
499 colors[ImGuiCol_TableHeaderBg] = backgroundLight;
500 colors[ImGuiCol_TableBorderStrong] = borderColor;
501 colors[ImGuiCol_TableBorderLight] = borderLight;
502 colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
503 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.03f);
504
505 colors[ImGuiCol_DockingPreview] = primaryAccentMuted;
506 colors[ImGuiCol_DockingEmptyBg] = backgroundDarkest;
507
508 colors[ImGuiCol_PlotLines] = primaryAccent;
509 colors[ImGuiCol_PlotLinesHovered] = primaryAccentHover;
510 colors[ImGuiCol_PlotHistogram] = secondaryAccent;
511 colors[ImGuiCol_PlotHistogramHovered] = secondaryAccentMuted;
512
513 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.6f);
514
515 style.WindowRounding = 8.0f;
516 style.ChildRounding = 6.0f;
517 style.FrameRounding = 6.0f;
518 style.PopupRounding = 8.0f;
519 style.ScrollbarRounding = 10.0f;
520 style.GrabRounding = 6.0f;
521 style.TabRounding = 6.0f;
522
523 style.WindowBorderSize = 1.0f;
524 style.ChildBorderSize = 1.0f;
525 style.PopupBorderSize = 1.0f;
526 style.FrameBorderSize = 1.0f;
527
528 style.WindowPadding = ImVec2(12.0f, 12.0f);
529 style.FramePadding = ImVec2(10.0f, 6.0f);
530 style.CellPadding = ImVec2(8.0f, 4.0f);
531 style.ItemSpacing = ImVec2(8.0f, 6.0f);
532 style.ItemInnerSpacing = ImVec2(6.0f, 4.0f);
533 style.IndentSpacing = 18.0f;
534
535 style.WindowMenuButtonPosition = ImGuiDir_None;
536
537 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
538 {
539 style.WindowRounding = 0.0f;
540 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
541 }
542}
543
545{
546 ImGuiIO& io = ImGui::GetIO();
547 ImGui::StyleColorsDark();
548
549 auto& style = ImGui::GetStyle();
550 auto& colors = ImGui::GetStyle().Colors;
551
552 auto backgroundDarkest = ImColor(25, 20, 15, 255);
553 auto backgroundDark = ImColor(35, 28, 20, 255);
554 auto backgroundMedium = ImColor(45, 35, 25, 255);
555 auto backgroundLight = ImColor(55, 43, 30, 255);
556 auto backgroundPopup = ImColor(30, 24, 18, 255);
557
558 auto primaryAccent = ImColor(255, 165, 0, 255);
559 auto primaryAccentHover = ImColor(255, 180, 30, 255);
560 auto primaryAccentActive = ImColor(235, 145, 0, 255);
561 auto primaryAccentMuted = ImColor(255, 165, 0, 90);
562
563 auto secondaryAccent = ImColor(255, 215, 0, 255);
564 auto secondaryAccentMuted = ImColor(255, 215, 0, 60);
565
566 auto textPrimary = ImColor(250, 245, 235, 255);
567 auto textMuted = ImColor(150, 140, 125, 255);
568
569 auto borderColor = ImColor(20, 15, 10, 255);
570 auto borderLight = ImColor(65, 53, 38, 255);
571
572 colors[ImGuiCol_WindowBg] = backgroundDark;
573 colors[ImGuiCol_ChildBg] = backgroundMedium;
574 colors[ImGuiCol_PopupBg] = backgroundPopup;
575 colors[ImGuiCol_Border] = borderColor;
576 colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
577 colors[ImGuiCol_MenuBarBg] = backgroundDarkest;
578
579 colors[ImGuiCol_Text] = textPrimary;
580 colors[ImGuiCol_TextDisabled] = textMuted;
581 colors[ImGuiCol_TextSelectedBg] = primaryAccentMuted;
582
583 colors[ImGuiCol_Button] = backgroundLight;
584 colors[ImGuiCol_ButtonHovered] = primaryAccentMuted;
585 colors[ImGuiCol_ButtonActive] = primaryAccentActive;
586
587 colors[ImGuiCol_Header] = backgroundLight;
588 colors[ImGuiCol_HeaderHovered] = primaryAccentMuted;
589 colors[ImGuiCol_HeaderActive] = primaryAccent;
590
591 colors[ImGuiCol_FrameBg] = backgroundMedium;
592 colors[ImGuiCol_FrameBgHovered] = backgroundLight;
593 colors[ImGuiCol_FrameBgActive] = primaryAccentMuted;
594
595 colors[ImGuiCol_TitleBg] = backgroundDarkest;
596 colors[ImGuiCol_TitleBgActive] = backgroundDark;
597 colors[ImGuiCol_TitleBgCollapsed] = backgroundDarkest;
598
599 colors[ImGuiCol_Tab] = backgroundDark;
600 colors[ImGuiCol_TabHovered] = primaryAccentMuted;
601 colors[ImGuiCol_TabSelected] = primaryAccent;
602 colors[ImGuiCol_TabDimmed] = backgroundDarkest;
603 colors[ImGuiCol_TabDimmedSelected] = backgroundLight;
604
605 colors[ImGuiCol_ScrollbarBg] = backgroundDark;
606 colors[ImGuiCol_ScrollbarGrab] = backgroundLight;
607 colors[ImGuiCol_ScrollbarGrabHovered] = primaryAccentMuted;
608 colors[ImGuiCol_ScrollbarGrabActive] = primaryAccent;
609
610 colors[ImGuiCol_CheckMark] = primaryAccent;
611 colors[ImGuiCol_SliderGrab] = primaryAccent;
612 colors[ImGuiCol_SliderGrabActive] = primaryAccentHover;
613
614 colors[ImGuiCol_Separator] = borderColor;
615 colors[ImGuiCol_SeparatorHovered] = borderLight;
616 colors[ImGuiCol_SeparatorActive] = primaryAccent;
617
618 colors[ImGuiCol_ResizeGrip] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
619 colors[ImGuiCol_ResizeGripHovered] = primaryAccentMuted;
620 colors[ImGuiCol_ResizeGripActive] = primaryAccent;
621
622 colors[ImGuiCol_TableHeaderBg] = backgroundLight;
623 colors[ImGuiCol_TableBorderStrong] = borderColor;
624 colors[ImGuiCol_TableBorderLight] = borderLight;
625 colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
626 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.03f);
627
628 colors[ImGuiCol_DockingPreview] = primaryAccentMuted;
629 colors[ImGuiCol_DockingEmptyBg] = backgroundDarkest;
630
631 colors[ImGuiCol_PlotLines] = primaryAccent;
632 colors[ImGuiCol_PlotLinesHovered] = primaryAccentHover;
633 colors[ImGuiCol_PlotHistogram] = secondaryAccent;
634 colors[ImGuiCol_PlotHistogramHovered] = secondaryAccentMuted;
635
636 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.6f);
637
638 style.WindowRounding = 4.0f;
639 style.ChildRounding = 3.0f;
640 style.FrameRounding = 3.0f;
641 style.PopupRounding = 4.0f;
642 style.ScrollbarRounding = 6.0f;
643 style.GrabRounding = 3.0f;
644 style.TabRounding = 3.0f;
645
646 style.WindowBorderSize = 1.0f;
647 style.ChildBorderSize = 1.0f;
648 style.PopupBorderSize = 1.0f;
649 style.FrameBorderSize = 1.0f;
650
651 style.WindowPadding = ImVec2(10.0f, 10.0f);
652 style.FramePadding = ImVec2(9.0f, 5.0f);
653 style.CellPadding = ImVec2(7.0f, 4.0f);
654 style.ItemSpacing = ImVec2(7.0f, 5.0f);
655 style.ItemInnerSpacing = ImVec2(5.0f, 4.0f);
656 style.IndentSpacing = 17.0f;
657
658 style.WindowMenuButtonPosition = ImGuiDir_None;
659
660 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
661 {
662 style.WindowRounding = 0.0f;
663 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
664 }
665}
666
668{
669 ImGuiIO& io = ImGui::GetIO();
670 ImGui::StyleColorsDark();
671
672 auto& style = ImGui::GetStyle();
673 auto& colors = ImGui::GetStyle().Colors;
674
675 auto backgroundDarkest = ImColor(15, 20, 30, 255);
676 auto backgroundDark = ImColor(20, 28, 40, 255);
677 auto backgroundMedium = ImColor(25, 35, 50, 255);
678 auto backgroundLight = ImColor(30, 43, 60, 255);
679 auto backgroundPopup = ImColor(18, 25, 35, 255);
680
681 auto primaryAccent = ImColor(0, 174, 239, 255);
682 auto primaryAccentHover = ImColor(30, 184, 249, 255);
683 auto primaryAccentActive = ImColor(0, 154, 219, 255);
684 auto primaryAccentMuted = ImColor(0, 174, 239, 90);
685
686 auto secondaryAccent = ImColor(64, 224, 255, 255);
687 auto secondaryAccentMuted = ImColor(64, 224, 255, 60);
688
689 auto textPrimary = ImColor(235, 245, 255, 255);
690 auto textMuted = ImColor(125, 140, 160, 255);
691
692 auto borderColor = ImColor(10, 15, 25, 255);
693 auto borderLight = ImColor(40, 53, 70, 255);
694
695 colors[ImGuiCol_WindowBg] = backgroundDark;
696 colors[ImGuiCol_ChildBg] = backgroundMedium;
697 colors[ImGuiCol_PopupBg] = backgroundPopup;
698 colors[ImGuiCol_Border] = borderColor;
699 colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
700 colors[ImGuiCol_MenuBarBg] = backgroundDarkest;
701
702 colors[ImGuiCol_Text] = textPrimary;
703 colors[ImGuiCol_TextDisabled] = textMuted;
704 colors[ImGuiCol_TextSelectedBg] = primaryAccentMuted;
705
706 colors[ImGuiCol_Button] = backgroundLight;
707 colors[ImGuiCol_ButtonHovered] = primaryAccentMuted;
708 colors[ImGuiCol_ButtonActive] = primaryAccentActive;
709
710 colors[ImGuiCol_Header] = backgroundLight;
711 colors[ImGuiCol_HeaderHovered] = primaryAccentMuted;
712 colors[ImGuiCol_HeaderActive] = primaryAccent;
713
714 colors[ImGuiCol_FrameBg] = backgroundMedium;
715 colors[ImGuiCol_FrameBgHovered] = backgroundLight;
716 colors[ImGuiCol_FrameBgActive] = primaryAccentMuted;
717
718 colors[ImGuiCol_TitleBg] = backgroundDarkest;
719 colors[ImGuiCol_TitleBgActive] = backgroundDark;
720 colors[ImGuiCol_TitleBgCollapsed] = backgroundDarkest;
721
722 colors[ImGuiCol_Tab] = backgroundDark;
723 colors[ImGuiCol_TabHovered] = primaryAccentMuted;
724 colors[ImGuiCol_TabSelected] = primaryAccent;
725 colors[ImGuiCol_TabDimmed] = backgroundDarkest;
726 colors[ImGuiCol_TabDimmedSelected] = backgroundLight;
727
728 colors[ImGuiCol_ScrollbarBg] = backgroundDark;
729 colors[ImGuiCol_ScrollbarGrab] = backgroundLight;
730 colors[ImGuiCol_ScrollbarGrabHovered] = primaryAccentMuted;
731 colors[ImGuiCol_ScrollbarGrabActive] = primaryAccent;
732
733 colors[ImGuiCol_CheckMark] = primaryAccent;
734 colors[ImGuiCol_SliderGrab] = primaryAccent;
735 colors[ImGuiCol_SliderGrabActive] = primaryAccentHover;
736
737 colors[ImGuiCol_Separator] = borderColor;
738 colors[ImGuiCol_SeparatorHovered] = borderLight;
739 colors[ImGuiCol_SeparatorActive] = primaryAccent;
740
741 colors[ImGuiCol_ResizeGrip] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
742 colors[ImGuiCol_ResizeGripHovered] = primaryAccentMuted;
743 colors[ImGuiCol_ResizeGripActive] = primaryAccent;
744
745 colors[ImGuiCol_TableHeaderBg] = backgroundLight;
746 colors[ImGuiCol_TableBorderStrong] = borderColor;
747 colors[ImGuiCol_TableBorderLight] = borderLight;
748 colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
749 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.03f);
750
751 colors[ImGuiCol_DockingPreview] = primaryAccentMuted;
752 colors[ImGuiCol_DockingEmptyBg] = backgroundDarkest;
753
754 colors[ImGuiCol_PlotLines] = primaryAccent;
755 colors[ImGuiCol_PlotLinesHovered] = primaryAccentHover;
756 colors[ImGuiCol_PlotHistogram] = secondaryAccent;
757 colors[ImGuiCol_PlotHistogramHovered] = secondaryAccentMuted;
758
759 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.6f);
760
761 style.WindowRounding = 6.0f;
762 style.ChildRounding = 4.0f;
763 style.FrameRounding = 4.0f;
764 style.PopupRounding = 6.0f;
765 style.ScrollbarRounding = 8.0f;
766 style.GrabRounding = 4.0f;
767 style.TabRounding = 4.0f;
768
769 style.WindowBorderSize = 1.0f;
770 style.ChildBorderSize = 1.0f;
771 style.PopupBorderSize = 1.0f;
772 style.FrameBorderSize = 1.0f;
773
774 style.WindowPadding = ImVec2(11.0f, 11.0f);
775 style.FramePadding = ImVec2(9.0f, 5.0f);
776 style.CellPadding = ImVec2(7.0f, 4.0f);
777 style.ItemSpacing = ImVec2(7.0f, 5.0f);
778 style.ItemInnerSpacing = ImVec2(5.0f, 4.0f);
779 style.IndentSpacing = 18.0f;
780
781 style.WindowMenuButtonPosition = ImGuiDir_None;
782
783 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
784 {
785 style.WindowRounding = 0.0f;
786 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
787 }
788}
789
791{
792 ImGuiIO& io = ImGui::GetIO();
793 ImGui::StyleColorsDark();
794
795 auto& style = ImGui::GetStyle();
796 auto& colors = ImGui::GetStyle().Colors;
797
798 auto backgroundDarkest = ImColor(18, 20, 18, 255);
799 auto backgroundDark = ImColor(26, 28, 26, 255);
800 auto backgroundMedium = ImColor(34, 36, 34, 255);
801 auto backgroundLight = ImColor(42, 44, 42, 255);
802 auto backgroundPopup = ImColor(22, 24, 22, 255);
803
804 auto primaryAccent = ImColor(76, 175, 80, 255);
805 auto primaryAccentHover = ImColor(86, 185, 90, 255);
806 auto primaryAccentActive = ImColor(66, 165, 70, 255);
807 auto primaryAccentMuted = ImColor(76, 175, 80, 75);
808
809 auto secondaryAccent = ImColor(129, 199, 132, 255);
810 auto secondaryAccentMuted = ImColor(129, 199, 132, 50);
811
812 auto textPrimary = ImColor(248, 248, 248, 255);
813 auto textMuted = ImColor(130, 130, 130, 255);
814
815 auto borderColor = ImColor(16, 18, 16, 255);
816 auto borderLight = ImColor(52, 54, 52, 255);
817
818 colors[ImGuiCol_WindowBg] = backgroundDark;
819 colors[ImGuiCol_ChildBg] = backgroundMedium;
820 colors[ImGuiCol_PopupBg] = backgroundPopup;
821 colors[ImGuiCol_Border] = borderColor;
822 colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
823 colors[ImGuiCol_MenuBarBg] = backgroundDarkest;
824
825 colors[ImGuiCol_Text] = textPrimary;
826 colors[ImGuiCol_TextDisabled] = textMuted;
827 colors[ImGuiCol_TextSelectedBg] = primaryAccentMuted;
828
829 colors[ImGuiCol_Button] = backgroundLight;
830 colors[ImGuiCol_ButtonHovered] = primaryAccentMuted;
831 colors[ImGuiCol_ButtonActive] = primaryAccentActive;
832
833 colors[ImGuiCol_Header] = backgroundLight;
834 colors[ImGuiCol_HeaderHovered] = primaryAccentMuted;
835 colors[ImGuiCol_HeaderActive] = primaryAccent;
836
837 colors[ImGuiCol_FrameBg] = backgroundMedium;
838 colors[ImGuiCol_FrameBgHovered] = backgroundLight;
839 colors[ImGuiCol_FrameBgActive] = primaryAccentMuted;
840
841 colors[ImGuiCol_TitleBg] = backgroundDarkest;
842 colors[ImGuiCol_TitleBgActive] = backgroundDark;
843 colors[ImGuiCol_TitleBgCollapsed] = backgroundDarkest;
844
845 colors[ImGuiCol_Tab] = backgroundDark;
846 colors[ImGuiCol_TabHovered] = primaryAccentMuted;
847 colors[ImGuiCol_TabSelected] = primaryAccent;
848 colors[ImGuiCol_TabDimmed] = backgroundDarkest;
849 colors[ImGuiCol_TabDimmedSelected] = backgroundLight;
850
851 colors[ImGuiCol_ScrollbarBg] = backgroundDark;
852 colors[ImGuiCol_ScrollbarGrab] = backgroundLight;
853 colors[ImGuiCol_ScrollbarGrabHovered] = primaryAccentMuted;
854 colors[ImGuiCol_ScrollbarGrabActive] = primaryAccent;
855
856 colors[ImGuiCol_CheckMark] = primaryAccent;
857 colors[ImGuiCol_SliderGrab] = primaryAccent;
858 colors[ImGuiCol_SliderGrabActive] = primaryAccentHover;
859
860 colors[ImGuiCol_Separator] = borderColor;
861 colors[ImGuiCol_SeparatorHovered] = borderLight;
862 colors[ImGuiCol_SeparatorActive] = primaryAccent;
863
864 colors[ImGuiCol_ResizeGrip] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
865 colors[ImGuiCol_ResizeGripHovered] = primaryAccentMuted;
866 colors[ImGuiCol_ResizeGripActive] = primaryAccent;
867
868 colors[ImGuiCol_TableHeaderBg] = backgroundLight;
869 colors[ImGuiCol_TableBorderStrong] = borderColor;
870 colors[ImGuiCol_TableBorderLight] = borderLight;
871 colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
872 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.02f);
873
874 colors[ImGuiCol_DockingPreview] = primaryAccentMuted;
875 colors[ImGuiCol_DockingEmptyBg] = backgroundDarkest;
876
877 colors[ImGuiCol_PlotLines] = primaryAccent;
878 colors[ImGuiCol_PlotLinesHovered] = primaryAccentHover;
879 colors[ImGuiCol_PlotHistogram] = secondaryAccent;
880 colors[ImGuiCol_PlotHistogramHovered] = secondaryAccentMuted;
881
882 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.6f);
883
884 style.WindowRounding = 2.0f;
885 style.ChildRounding = 1.0f;
886 style.FrameRounding = 2.0f;
887 style.PopupRounding = 2.0f;
888 style.ScrollbarRounding = 4.0f;
889 style.GrabRounding = 2.0f;
890 style.TabRounding = 1.0f;
891
892 style.WindowBorderSize = 1.0f;
893 style.ChildBorderSize = 1.0f;
894 style.PopupBorderSize = 1.0f;
895 style.FrameBorderSize = 1.0f;
896
897 style.WindowPadding = ImVec2(8.0f, 8.0f);
898 style.FramePadding = ImVec2(8.0f, 4.0f);
899 style.CellPadding = ImVec2(6.0f, 3.0f);
900 style.ItemSpacing = ImVec2(6.0f, 4.0f);
901 style.ItemInnerSpacing = ImVec2(4.0f, 3.0f);
902 style.IndentSpacing = 16.0f;
903
904 style.WindowMenuButtonPosition = ImGuiDir_None;
905
906 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
907 {
908 style.WindowRounding = 0.0f;
909 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
910 }
911}
912
914{
915 ImGuiIO& io = ImGui::GetIO();
916 ImGui::StyleColorsDark();
917
918 auto& style = ImGui::GetStyle();
919 auto& colors = ImGui::GetStyle().Colors;
920
921 auto backgroundDarkest = ImColor(48, 48, 48, 255);
922 auto backgroundDark = ImColor(56, 56, 56, 255);
923 auto backgroundMedium = ImColor(62, 62, 62, 255);
924 auto backgroundLight = ImColor(72, 72, 72, 255);
925 auto backgroundPopup = ImColor(52, 52, 52, 255);
926
927 auto primaryAccent = ImColor(58, 121, 187, 255);
928 auto primaryAccentHover = ImColor(78, 141, 207, 255);
929 auto primaryAccentActive = ImColor(48, 101, 167, 255);
930 auto primaryAccentStrong = ImColor(58, 121, 187, 180);
931 auto primaryAccentMuted = ImColor(58, 121, 187, 60);
932
933 auto textPrimary = ImColor(220, 220, 220, 255);
934 auto textMuted = ImColor(128, 128, 128, 255);
935
936 auto borderDark = ImColor(35, 35, 35, 255);
937 auto borderMedium = ImColor(80, 80, 80, 255);
938
939 colors[ImGuiCol_WindowBg] = backgroundDark;
940 colors[ImGuiCol_ChildBg] = backgroundMedium;
941 colors[ImGuiCol_PopupBg] = backgroundPopup;
942 colors[ImGuiCol_Border] = borderDark;
943 colors[ImGuiCol_BorderShadow] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
944 colors[ImGuiCol_MenuBarBg] = backgroundDarkest;
945
946 colors[ImGuiCol_Text] = textPrimary;
947 colors[ImGuiCol_TextDisabled] = textMuted;
948 colors[ImGuiCol_TextSelectedBg] = primaryAccentStrong;
949
950 colors[ImGuiCol_Button] = backgroundLight;
951 colors[ImGuiCol_ButtonHovered] = primaryAccentMuted;
952 colors[ImGuiCol_ButtonActive] = primaryAccentStrong;
953
954 colors[ImGuiCol_Header] = backgroundLight;
955 colors[ImGuiCol_HeaderHovered] = primaryAccentMuted;
956 colors[ImGuiCol_HeaderActive] = primaryAccentStrong;
957
958 colors[ImGuiCol_FrameBg] = ImColor(35, 35, 35, 255);
959 colors[ImGuiCol_FrameBgHovered] = ImColor(45, 45, 45, 255);
960 colors[ImGuiCol_FrameBgActive] = ImColor(55, 55, 55, 255);
961
962 colors[ImGuiCol_TitleBg] = backgroundDarkest;
963 colors[ImGuiCol_TitleBgActive] = backgroundDark;
964 colors[ImGuiCol_TitleBgCollapsed] = backgroundDarkest;
965
966 colors[ImGuiCol_Tab] = backgroundDark;
967 colors[ImGuiCol_TabHovered] = primaryAccentMuted;
968 colors[ImGuiCol_TabSelected] = primaryAccentStrong;
969 colors[ImGuiCol_TabDimmed] = backgroundDarkest;
970 colors[ImGuiCol_TabDimmedSelected] = backgroundLight;
971
972 colors[ImGuiCol_ScrollbarBg] = backgroundDark;
973 colors[ImGuiCol_ScrollbarGrab] = backgroundLight;
974 colors[ImGuiCol_ScrollbarGrabHovered] = borderMedium;
975 colors[ImGuiCol_ScrollbarGrabActive] = primaryAccent;
976
977 colors[ImGuiCol_CheckMark] = primaryAccent;
978 colors[ImGuiCol_SliderGrab] = primaryAccent;
979 colors[ImGuiCol_SliderGrabActive] = primaryAccentHover;
980
981 colors[ImGuiCol_Separator] = borderDark;
982 colors[ImGuiCol_SeparatorHovered] = borderMedium;
983 colors[ImGuiCol_SeparatorActive] = primaryAccent;
984
985 colors[ImGuiCol_ResizeGrip] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
986 colors[ImGuiCol_ResizeGripHovered] = primaryAccentMuted;
987 colors[ImGuiCol_ResizeGripActive] = primaryAccent;
988
989 colors[ImGuiCol_TableHeaderBg] = backgroundLight;
990 colors[ImGuiCol_TableBorderStrong] = borderDark;
991 colors[ImGuiCol_TableBorderLight] = borderMedium;
992 colors[ImGuiCol_TableRowBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.0f);
993 colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.0f, 1.0f, 1.0f, 0.01f);
994
995 colors[ImGuiCol_DockingPreview] = primaryAccentStrong;
996 colors[ImGuiCol_DockingEmptyBg] = backgroundDarkest;
997
998 colors[ImGuiCol_PlotLines] = primaryAccent;
999 colors[ImGuiCol_PlotLinesHovered] = primaryAccentHover;
1000 colors[ImGuiCol_PlotHistogram] = primaryAccent;
1001 colors[ImGuiCol_PlotHistogramHovered] = primaryAccentHover;
1002
1003 colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.0f, 0.0f, 0.0f, 0.65f);
1004
1005 style.WindowRounding = 0.0f;
1006 style.ChildRounding = 0.0f;
1007 style.FrameRounding = 2.0f;
1008 style.PopupRounding = 6.0f;
1009 style.ScrollbarRounding = 0.0f;
1010 style.GrabRounding = 0.0f;
1011 style.TabRounding = 2.0f;
1012
1013 style.WindowBorderSize = 1.0f;
1014 style.ChildBorderSize = 0.0f;
1015 style.PopupBorderSize = 1.0f;
1016 style.FrameBorderSize = 0.0f;
1017
1018 style.WindowPadding = ImVec2(6.0f, 6.0f);
1019 style.FramePadding = ImVec2(8.0f, 3.0f);
1020 style.CellPadding = ImVec2(4.0f, 2.0f);
1021 style.ItemSpacing = ImVec2(4.0f, 3.0f);
1022 style.ItemInnerSpacing = ImVec2(4.0f, 2.0f);
1023 style.IndentSpacing = 15.0f;
1024 style.ScrollbarSize = 16.0f;
1025 style.GrabMinSize = 10.0f;
1026
1027 style.WindowMenuButtonPosition = ImGuiDir_None;
1028
1029 if(io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
1030 {
1031 style.WindowRounding = 0.0f;
1032 style.Colors[ImGuiCol_WindowBg].w = 1.0f;
1033 }
1034}
1035
1036} // namespace imgui_style
void set_unity_theme()
void set_modern_purple_theme()
void set_unity_inspired_theme()
void set_minimalist_green_theme()
void set_warm_amber_theme()
void set_professional_dark_theme()
void set_dark_theme()
void set_cool_blue_theme()
void set_dark_theme_red()
void set_photoshop_theme()