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

Moving DockingSplitterSize to ImGuiStyle #4721

Closed
wants to merge 1 commit into from

Conversation

wobbier
Copy link

@wobbier wobbier commented Nov 14, 2021

Hey! I got into styling ImGui quite a bit, and needed to modify the thickness of the docking splitter.

I moved the existing global variable into the style, I've updated the various places it was used, and added it to the style tab in imgui_demo.cpp

My only notes/questions are:

  • Did I miss anything? 🥲
  • There's a spot in code where I've updated a comment that's questioning the relation to the splitter size and I'm not completely sure what eventually calls ImGui::DockNodeTreeFindVisibleNodeByPos, so I left it alone for now
  • const float dock_spacing = 0.0f;// g.Style.ItemInnerSpacing.x; // FIXME: Relation to Style.DockingSplitterSize?

Example
Ik544P236z

@wobbier
Copy link
Author

wobbier commented Nov 15, 2021

Ah, Just found this PR: #3481

@ocornut ocornut changed the title 🪄 Moving DockingSplitterSize to ImGuiStyle Moving DockingSplitterSize to ImGuiStyle Nov 15, 2021
@ocornut
Copy link
Owner

ocornut commented Nov 15, 2021

Thanks! Yes this seems like a duplicate of #3481. I'll investigate both and will pick the most suitable but as highlighted in #3481 the "tricky" part was figuring out a parameter design for those inner/outer settings. Will look at this before next version.

@wobbier
Copy link
Author

wobbier commented Nov 16, 2021

I personally think this should be a separate option (a single float), and we add a second ImVec2 for the "docking space padding".
If the user wants them to be the same size, they can input that themselves.

Unless you're talking about docked panels having their own inner / outer spacing different from padding?

@ocornut
Copy link
Owner

ocornut commented Jul 11, 2023

Closed this see comment #3481 (comment)
Haven't found a satisfying solution for outer one yet (also see that comment).

@ocornut ocornut closed this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants