-
-
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
Add ForceCloseButton TabItem flag #8387
Comments
If anything it would likely be a style settings rather than a per-tab item flag. |
…eButtonMinWidthUnselected. Added TabCloseButtonMinWidthSelected. (#8387)
I've reworked the design for this with ef7ffaf:
I believe the new default might be sufficient for you, but you can change the style to make the close button appears on unselected tabs too. Let me know if you think this is an acceptable answer for you, or if you feel there is a need to add per-instance settings, |
This will work well for me. Thanks! |
Version/Branch of Dear ImGui:
Version 1.91.6, Branch: docking
Back-ends:
glfw + opengl3
Compiler, OS:
MSVC 2022
Full config/build information:
No response
Details:
My Issue/Question:
Currently a tab item shows close button only when hovered. In many applications close buttons are showed permanently so it would be nice to support this with an additional flag e.g. ImGuiTabItemFlags_ForceCloseButton.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
ImGui::BeginTabItem("tab", &isOpen)
The text was updated successfully, but these errors were encountered: