mirror of
https://github.com/ocornut/imgui.git
synced 2026-06-01 17:56:45 +08:00
Docking, Style: resizing separators use same colors as window borders. (#2522)
This commit is contained in:
@@ -129,6 +129,10 @@ Other changes:
|
|||||||
|
|
||||||
Docking+Viewports Branch:
|
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
|
- Docking: added style.DockingSeparatorSize, ImGuiStyleVar_DockingSeparatorSize. Now
|
||||||
also scaled by style.ScaleAllSizes(). (#3481, #4721, #2522) [@PossiblyAShrub, @wobbier]
|
also scaled by style.ScaleAllSizes(). (#3481, #4721, #2522) [@PossiblyAShrub, @wobbier]
|
||||||
- Docking: fixed rendering of docked-window scrollbar above outer border. (#2522)
|
- Docking: fixed rendering of docked-window scrollbar above outer border. (#2522)
|
||||||
|
|||||||
@@ -16519,7 +16519,11 @@ static void ImGui::DockNodeUpdate(ImGuiDockNode* node)
|
|||||||
if (node->IsRootNode() && host_window)
|
if (node->IsRootNode() && host_window)
|
||||||
{
|
{
|
||||||
DockNodeTreeUpdatePosSize(node, host_window->Pos, host_window->Size);
|
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);
|
DockNodeTreeUpdateSplitter(node);
|
||||||
|
PopStyleColor(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw empty node background (currently can only be the Central Node)
|
// Draw empty node background (currently can only be the Central Node)
|
||||||
|
|||||||
Reference in New Issue
Block a user