Skip to content

Commit

Permalink
Docking, Style: resizing separators use same colors as window borders. (
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jul 11, 2023
1 parent f4942bc commit 51b3480
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ Other changes:

Docking+Viewports Branch:

- Docking, Style: resizing separators use same colors as window borders (ImGuiCol_Border)
for consistency. With default styles it doesn't make a big difference. (#2522) [@rmitton]
In the future if we promote using thick value for inner/outer docking padding we may
need to introduce new colors for it.
- Docking: added style.DockingSeparatorSize, ImGuiStyleVar_DockingSeparatorSize. Now
also scaled by style.ScaleAllSizes(). (#3481, #4721, #2522) [@PossiblyAShrub, @wobbier]
- Docking: fixed rendering of docked-window scrollbar above outer border. (#2522)
Expand Down
4 changes: 4 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16519,7 +16519,11 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node)
if (node->IsRootNode() && host_window)
{
DockNodeTreeUpdatePosSize(node, host_window->Pos, host_window->Size);
PushStyleColor(ImGuiCol_Separator, g.Style.Colors[ImGuiCol_Border]);
PushStyleColor(ImGuiCol_SeparatorActive, g.Style.Colors[ImGuiCol_ResizeGripActive]);
PushStyleColor(ImGuiCol_SeparatorHovered, g.Style.Colors[ImGuiCol_ResizeGripHovered]);
DockNodeTreeUpdateSplitter(node);
PopStyleColor(3);
}

// Draw empty node background (currently can only be the Central Node)
Expand Down

0 comments on commit 51b3480

Please sign in to comment.