From a38fcb4edf81393332ab9b8905cee1e880e8f253 Mon Sep 17 00:00:00 2001 From: Richard Mitton Date: Mon, 29 Apr 2019 11:42:15 -0700 Subject: [PATCH] Fixed docked window borders to match undocked window borders --- imgui.cpp | 2 +- imgui_widgets.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index dcd838878cde..339940273eb5 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10883,7 +10883,7 @@ void ImGui::DestroyPlatformWindows() // Docking: Internal Types //----------------------------------------------------------------------------- -static float IMGUI_DOCK_SPLITTER_SIZE = 2.0f; +#define IMGUI_DOCK_SPLITTER_SIZE GetStyle().WindowBorderSize enum ImGuiDockRequestType { diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index d8812b806ed9..001b82e719a4 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -1339,7 +1339,7 @@ bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float } // Render - const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + const ImU32 col = GetColorU32(held ? ImGuiCol_ResizeGripActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_ResizeGripHovered : ImGuiCol_Border); window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, g.Style.FrameRounding); return held;