ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
59.74k stars 10.17k forks source link

Border color doesn't apply to docked windows? #3537

Open vexe opened 3 years ago

vexe commented 3 years ago

Version/Branch of Dear ImGui:

Version: 1.79 WIP (17803) Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp Compiler: MSVC Operating System: Win10

My Issue/Question:

I'm trying to have a custom border color on my windows when they're active, where the alpha of the border pulsates/pingpongs. It works fine when the windows are separate, but when they're docked the ImGuiCol_Border seems to be completely ignored. I can change the split color but it only changes the color of the line between the windows split, not everything around the window. The other approach is for me to just manually draw a rect (via the drawlist) around my window when it gains focus, but I was trying to stick to what imgui has already built in instead of drawing my shapes over it.

I expect the border coloring would still take affect, docked or not.

Standalone, minimal, complete and verifiable example: (see https://github.com/ocornut/imgui/issues/2261)

ImGui::ShowDemoWindow(); // simply spawn any 2 windows, open up the style editor via Tools/Style Editor, change the color of the Border, observe how it changes the border of the 2 windows, now dock the windows into each other, notice how the border coloring is ignored.
frink commented 3 years ago

This is because of the way things are drawn in Docked mode. Styling is not yet fine tuned on the docking branch...

Earsuit commented 9 months ago

Hello, I meet the same problem, do we have any progress on it?