-
Notifications
You must be signed in to change notification settings - Fork 4.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
[Viewer] Font size slider #12588
[Viewer] Font size slider #12588
Conversation
@@ -239,7 +240,7 @@ bool option_model::draw_combobox( notifications_model & model, | |||
|
|||
ImGui::SameLine(); | |||
if( new_line ) |
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 new_line
is true
by default. Can we remove a check?
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.
It is a parameter, is it always true?
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.
Yes, it receives true in the parameters of a function.
We call the function only once without sending it a boolean parameter.
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.
If it's always try on DQT + RS-Viewer then we can remove it sure
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.
But on another side in the future, if somebody adds a new call with draw(..., ..., false)
it will create unexpected behavior. Sorry, let's leave it as is it now.
|
||
std::vector<const char*> methods; | ||
methods.push_back("Viewer Processing Rate"); | ||
methods.push_back("Camera Timestamp Rate"); | ||
|
||
ImGui::PushItemWidth(r.w - 207); | ||
ImGui::PushItemWidth(-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.
What does a width of -1 do?
Looks like the older calculation is related to windows size, don't we need it?
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.
-1 value set width "to the end available zone"
ImGui::Text("SetNextItemWidth/PushItemWidth(-1)"); ImGui::SameLine(); HelpMarker("Align to right edge"); ImGui::PushItemWidth(-1);
The code sample from imgui_demo.cpp here
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.
Can we do the same with all combo boxes in the left pane and adjust the border according to the font size?
Please rebase before we merge it |
The combo box starts right after his label now and not after the fixed number.
The width of Combo is dynamic according to font size now.
A big_button from the tools panel (3D view) is upgraded to receive float values because the sizes of buttons must be float values due to compatibility with font size.
The Font slider was aligned with the Font Samples
Space increased and dynamic between labels in values in the info Device Details
51f2465
to
e8e38d6
Compare
Rebased |
This PR adds an accessibility option to the RS-Viewer + Depth Quality tool settings.
Now the user can control and increase the default application font size.
Tracked on [LRS-979]