Open Jaysmito101 opened 2 years ago
Hello,
You are not specifying which StyleVar you are trying to alter. The effect of varying tabs using varying style vars when docked is tricky to settle for and specific to each style var. The values of style variable between NewFrame()
will alter some of those for docking tab bars.
See #2700, #2539, #3537, #3521, #4953.
@ocornut Sorry for not mentioning.
I am trying to increase FramePadding of the title when the window is docked. To be exact I i want to have the same style of the title as in the docking preview in the docked window. Here is a screen shot: I want the title to look like: And not like:
With what I get I will need to increase FramePadding. (For the font I think I will change the default font to the required one as suggested in https://github.com/ocornut/imgui/issues/4953#issuecomment-1023473332)
As with #4953 and others you can set the FramePadding value before calling NewFrame()
.
I am not sure how you expect this to be handled automatically with heterogeneous values. Perhaps the docking tab bar could use the MAX of all FramePadding ?
My Issue/Question:
I was trying to style the title bar of the window with Push/Pop StyleVar calls. I tried placing the calls before and after
ImGui::Begin
and that works perfectly when the window is not docked but when its docked the style is not applied. I guessed this is because the title is drawn by the dockspace when its docked so i added the style Push/Pop calls before the main dockspace and it works when the windows are docked in the main dockspace but when its docked inside another window it doesn't work. So, is there a way to modify the style of window title when docked?