You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when using input field in ColorEdit4() to type/paste hexadecimal color and the number will be too short (i.e. will not include alpha value), tha alpha value will default to 0. In my opinion defaulting to FF would be better in case someone pastes a color without alpha channel to make this color visible.
Version/Branch of Dear ImGui:
Version: 1.78
Branch: master
My Issue/Question:
Currently, when using input field in ColorEdit4() to type/paste hexadecimal color and the number will be too short (i.e. will not include alpha value), tha alpha value will default to 0. In my opinion defaulting to FF would be better in case someone pastes a color without alpha channel to make this color visible.
One possible solution could be to replace line
imgui/imgui_widgets.cpp
Line 4807 in 688e064
with
Screenshots/Video
Before loosing focus:
After loosing focus:
Standalone, minimal, complete and verifiable example:
N/A
The text was updated successfully, but these errors were encountered: