Skip to content

Commit

Permalink
fix: fixed modals transparent background
Browse files Browse the repository at this point in the history
  • Loading branch information
klonyyy committed Dec 8, 2024
1 parent 018f3e7 commit 2bcc42a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Gui/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ void Gui::mainThread(std::string externalPath)
ImFontConfig cfg;
cfg.SizePixels = 13.0f * GuiHelper::contentScale;

ImGui::GetStyle().ScaleAllSizes(GuiHelper::contentScale);

ImGuiIO& io = ImGui::GetIO();
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable;

Expand All @@ -85,6 +83,9 @@ void Gui::mainThread(std::string externalPath)
ImGui::StyleColorsDark();
ImPlot::StyleColorsDark();

ImGui::GetStyle().ScaleAllSizes(GuiHelper::contentScale);
ImGui::GetStyle().Colors[ImGuiCol_PopupBg] = ImVec4(0.1f, 0.1f, 0.1f, 1.0f);

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
ImGui_ImplGlfw_InitForOpenGL(window, true);
Expand Down

0 comments on commit 2bcc42a

Please sign in to comment.