Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to set the style correctly (right angle edge&rounded edge) with multi-viewports #7813

Closed
Moerre opened this issue Jul 23, 2024 · 3 comments

Comments

@Moerre
Copy link

Moerre commented Jul 23, 2024

Version/Branch of Dear ImGui:

v1.90.9-docking

Back-ends:

imgui_impl_XXX.cpp + imgui_impl_XXX.cpp

Compiler, OS:

win10+msvc2020

Full config/build information:

1.mp4

Details:

After enabling the function of leaving the parent window, it is not possible to set the child window style to rounded edges. When the child window leaves the parent window, it will automatically become a right angled edge

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@GamingMinds-DanielC
Copy link
Contributor

The additional viewport that is opened for your window doesn't have support for rounded corners. You don't even have to leave the main viewport, rounded window corners don't work well with docking in general. That's not a bug that can be easily fixed, it is more of a conceptual limitation. So if you want a consistent look and docking/viewport support, I would suggest to not use window rounding at all.

@Moerre
Copy link
Author

Moerre commented Jul 23, 2024

alright The main reason is that I need to work under two screens, and leaving the parent menu makes it impossible for me to set the round edge (my obsession). Is there any way to achieve it?

@ocornut
Copy link
Owner

ocornut commented Jul 23, 2024

Not easily, no. You would have to configure per-pixel alpha compositing/transparency which is currently not demonstrated nor possible in a portable manner.

This is the same issue as #6599 #5852 #4180

About transparency you may investigate #5988 #7788 #7462 #7045 #7181 #6558 #5282 #2766 #2764 but given the form of your question it's unlikely to be simple.

@ocornut ocornut closed this as completed Jul 23, 2024
@ocornut ocornut changed the title Unable to set the style correctly (right angle edge&rounded edge) Unable to set the style correctly (right angle edge&rounded edge) with multi-viewports Jul 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants