Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed docked window borders to match undocked window borders #2522

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down