-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Tooltip breaks disabled alpha #8454
Comments
Thank you for your report! I can confirm there is a bug. |
The problem is caused by the fact that: ImGui::PushStyleVar(ImGuiStyleVar_DisabledAlpha, 1.0f); is the value used by Notice that the effect of that I should work toward stacking more actual alpha to restore, but must admit the nested |
I have pushed a fix df31774. I consider the Thanks for reporting and the repro ! |
Thanks, it's not a breaking problem, was just a weird glitch I was having. Where I waws using it the second disabled was conditional, and the PushStyleVar was supposed to affect another control. Was strange that the first button was ok, and the second only breaks after the tooltip popup. Just reported it here since it was hard to reproduce, but I agree it is a bit ill-defined and I could probably refactor that code a bit. |
Version/Branch of Dear ImGui:
1.91.9 WIP (19184) docking
Back-ends:
imgui_impl_sdl2 + imgui_impl_opengl3
Compiler, OS:
gcc, Linux
Full config/build information:
Details:
I have two buttons, both disabled, but the second one loses the alpha if the first one has a tooltip:
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: