diff --git a/client/src/app.c b/client/src/app.c index 037b26c1..d762ac8c 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -821,7 +821,7 @@ int app_renderOverlay(struct Rect * rects, int maxRects) { totalDamage = true; ImDrawList_AddRectFilled(igGetBackgroundDrawListNil(), (ImVec2) { 0.0f , 0.0f }, - g_state.io->DisplaySize, 0x66000000, 0, 0); + g_state.io->DisplaySize, igGetColorU32Col(ImGuiCol_ModalWindowDimBg, 1.0f), 0, 0); // bool test; // igShowDemoWindow(&test); diff --git a/client/src/main.c b/client/src/main.c index 7147eb0f..07ef8a16 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -823,6 +823,8 @@ static int lg_run(void) g_state.io = igGetIO(); g_state.style = igGetStyle(); + g_state.style->Colors[ImGuiCol_ModalWindowDimBg] = (ImVec4) { 0.0f, 0.0f, 0.0f, 0.4f }; + alloc_sprintf(&g_state.imGuiIni, "%s/imgui.ini", lgConfigDir()); g_state.io->IniFilename = g_state.imGuiIni; g_state.io->BackendFlags |= ImGuiBackendFlags_HasMouseCursors;