-
Notifications
You must be signed in to change notification settings - Fork 5k
Update ImGui v1.90.9 #13392
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
Update ImGui v1.90.9 #13392
Conversation
|
Note that once ready we will have to make a UI sanity to this change. |
5ea88b8 to
48807d1
Compare
b1881af to
dd72548
Compare
844ac13 to
54a0dc3
Compare
79ed478 to
86d8f64
Compare
86d8f64 to
4ed121d
Compare
00a7344 to
41a586b
Compare
common/device-model.cpp
Outdated
| if (ImGui::ButtonEx(record_button_name.c_str(), device_panel_icons_size, (disable_record_button_logic(is_streaming, is_playback_device)) ? ImGuiButtonFlags_Disabled : 0)) | ||
| bool button_disabled = disable_record_button_logic(is_streaming, is_playback_device); | ||
| if (button_disabled) | ||
| ImGui::PushStyleColor(ImGuiCol_Text,ImVec4(0.5f,0.5f,0.5f,1.f)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the flag ImGuiButtonFlags_Disabled was removed so I used ImGuiItemFlags_Disabled flag instead and it wasn't changing the button color (to dark gray). I searched more and found ImGui::BeginDisabled() function that does it better and used it instead.
common/device-model.cpp
Outdated
| if (button_disabled) | ||
| ImGui::PushStyleColor(ImGuiCol_Text,ImVec4(0.5f,0.5f,0.5f,1.f)); | ||
|
|
||
| if (ImGui::ButtonEx(record_button_name.c_str(), device_panel_icons_size, (disable_record_button_logic(is_streaming, is_playback_device)) ? ImGuiItemFlags_Disabled : 0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have it on button_disabled no?
a64e4a3 to
c6188ef
Compare
Traced on: [LRS-1129]