-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
Color too dark custom checkbox color fill #7603
Comments
It seems you're drawing something over the color-filled rectangle. // Remove the conditional rendering based on hovered or held
RenderFrame(check_bb.Min, check_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); Can you remove corresponding line and see if the color is still darker? p.s. Imgui recommends not to use Lines 3409 to 3417 in aa5a609
|
Correct, thanks for spotting that. (also technically color space depends on your backend, swap-chain and other esoteric features that may be part of your app or driver so it's a wider issue and there's no such thing as a "real" color. But here your issue is clearly that you are drawing something over your color anyhow) |
Version/Branch of Dear ImGui:
Version 1.96, Branch: master
Back-ends:
imgui_widgets.cpp
Compiler, OS:
Windows 10
Full config/build information:
No response
Details:
My issue:
I have a custom filled checkbox instead of default, it fills with a color when clicked.
However the color I defined is clearly green, but when I compile and click the box, it is more DARK green.
I don't know if this can be changed, or imgui colors have to be improved.
Please if there is a better option to make this checkbox the real proper green and not dark green, tell me.
Screenshots/Video:
dark green problem
the value I defined
the real color brightness of the value
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: