From aa1d2addcf15cbfa4d24c0f5a5a11e16c18d0a5e Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Wed, 17 Jun 2020 18:54:37 +0200 Subject: [PATCH] Tweek on theme --- main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.cpp b/main.cpp index 0fb0e24..f2d9da0 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); -- GitLab