-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Separate separator colour from border OR border bug? #1019
Comments
You have a bug somewhere - is your imgui modded?
You are correct that no border should appear unless you pass the _ShowBorder flag. However the BeginChild() function has a bool which itself sets this flag in the window. Presumably your codebase uses lots of child windows for tabs so maybe thats your issue.
This is going to be refactored and "fixed" in a further release (maybe 1.50): we will add BorderSize to ImGuiStyle and remove the ShowBorder flag accordingly. This flag is a little inconsistent at the moment.
|
Aahh. Yes. I had actually touched that flag before to try and be smart about it in some way before, and had just forgotten about it. But the attempt at smartness comes from the other issue you bring up (apparently I had been setting the flag depending on the alpha value of the colour as an ad-hoc solution, which broke down when it got to the separators now), which is that whether or not to have borders is not currently AFAIK a style/theme setting, so yes, that'd be a good addition indeed! c: |
Am I mistaken, or is it true that there is still no way to get rid of menubar borders other than setting the alpha to zero? I managed to get rid of the windows' borders now but the menu popups still have borders and I can't find any boolean flag in those functions. |
Yes you are correct, this should be reworked when I get to do a pass on all border settings. |
All right, thanks for the sanity check! |
@avaskoog I have now applied the (breaking) change of renaming the I think it should fix the issue "Separate separator colour from border". |
@avaskoog Now pushed a handful of changes today so you can now freely alter the border size Let me know if that all works as expected for you! |
Yo!
I may have messed up completely, but all my windows lack the show-border flag, and I have deleted all ImGui save/config/ini files and I have added the no-save flag to all windows as well. Yet I still see borders no matter what. Considering there's an option to show borders rather than hide them, shouldn't the default be no borders? How come I'm seeing borders?
My hacky solution so far has been to just set the theme's style's border colour to have an alpha value of zero, but that comes with my particular issue right now: I want a borderless layout, but since the only way I've managed to get rid of borders is to set the alpha to zero, and horizontal separators (
Separator()
) in menus use the same colour style, my separators are now invisible, and I would like to see those despite having a borderless theme...So unless there is some show-border issue to be solved (either because there is a bug or because I made some kind of mistake), I guess it would be nice to have separator colour be separate from border colour, since I want to hide the borders but not the separators.
c:
The text was updated successfully, but these errors were encountered: