diff --git a/main.cpp b/main.cpp index 0fb0e249dae723ba9f232c057099d502261dc268..f2d9da08e9f85785e6e7dcaa522163e246502014 100644 --- a/main.cpp +++ b/main.cpp @@ -101,6 +101,14 @@ int main(int argc, char **argv) ImGui_ImplSDL2_InitForOpenGL(window, gl_context); ImGui_ImplOpenGL3_Init(glsl_version); + // Out windows look the same as the in primary window + ImGuiStyle& style = ImGui::GetStyle(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + style.WindowRounding = 0.0f; + style.Colors[ImGuiCol_WindowBg].w = 1.0f; + } + assert(io.Fonts->AddFontDefault()); //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f);