-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Sub menus overlaying each other #1086
Comments
It is intentional and desirable because when you start being in situation where child menus needs to be on the LEFT of their parent because of lack of space on the right, it would become really hard to distinguish the order of menus. Why would you like to change that in the first place? |
That's a fair point. I probably don't have to change it then, but I think it looks weird to me because of the transparency. Maybe I can fix that myself in the style's colors; if there is a style color for the menu background of these? I only see |
This is a fair point that its look a little weird with transparency. The default theme is opaque there, it is using ( |
@codecat, I love the colors you are using ! |
Sure! It's worth noting I took this from some other issue here, but I don't remember which.. :)
|
thank you !! |
Actually, I got that color inversion code from the same Github issue 🤔 |
…elp convey relative depth) from using style.ItemSpacing.x to style.ItemInnerSpacing.x, the later being expected to be smaller. (#1086)
@codecat I made a small change today to alter the overlap to use I think this would attenuate this issue a little bit. I noticed on your recent post that you are still using the same style so maybe that attenuation is enough to make this a non-problem? If you can't updating Dear ImGui easily, you can test the change localy by changing the assignment in I am not sure else what to do and I am tempted to close this issue if you think this isn't a big problem. |
Thanks, that would indeed help! Will be able to try it out tonight. It's been a while since I've seen this issue, partly because I don't have a lot of these overlapping submenus anymore. Feel free to close this issue if you want. By the way, is there an issue for "style 2.0"? I'd love to read your plans for that! |
Thanks, will close this then, always a bit of a relief to close something ;)
This is scattered around posts and personal notes. Too early/busy to make a proper write-up, hopefully things will move this year. I'm currently looking at DPI/scaling issues first. |
So I have noticed that open sub-menus will kinda overlay on its parent menu, here's an example:
I looked around in ImGuiStyle and couldn't find anything that would let me change this, though I kinda imagine it might have something to do with my style where I changed the padding:
Is it possible to change the appearance/positioning of menus?
The text was updated successfully, but these errors were encountered: