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

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

Open
vexe opened this issue Oct 16, 2020 · 2 comments
Open

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

vexe opened this issue Oct 16, 2020 · 2 comments

Comments

@vexe
Copy link

vexe commented Oct 16, 2020

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 #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
Copy link
Contributor

frink commented Oct 16, 2020

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

@Earsuit
Copy link

Earsuit commented Dec 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants