mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] egl: add tooltip about Ctrl+Click on sharpness sliders
With the new keymap feature, we are now able to properly support letting the user enter exact values into the sliders. This commit adds a tooltip to help the user discover this feature. Note that this currently only works on Wayland. The X11 backend will need to call app_handleKeyboardModifiers.
This commit is contained in:
parent
c89518ead4
commit
36073586e7
2 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,8 @@ static bool egl_filterFFXCASImguiConfig(EGL_Filter * filter)
|
|||
igGetStyle()->WindowPadding.x);
|
||||
|
||||
igSliderFloat("##casSharpness", &casSharpness, 0.0f, 1.0f, NULL, 0);
|
||||
if (igIsItemHovered(ImGuiHoveredFlags_None))
|
||||
igSetTooltip("Ctrl+Click to enter a value");
|
||||
igPopItemWidth();
|
||||
|
||||
if (casSharpness != this->sharpness)
|
||||
|
|
|
@ -280,6 +280,8 @@ static bool egl_filterFFXFSR1ImguiConfig(EGL_Filter * filter)
|
|||
igPushItemWidth(igGetWindowWidth() - igGetCursorPosX() -
|
||||
igGetStyle()->WindowPadding.x);
|
||||
igSliderFloat("##fsr1Sharpness", &sharpness, 0.0f, 1.0f, NULL, 0);
|
||||
if (igIsItemHovered(ImGuiHoveredFlags_None))
|
||||
igSetTooltip("Ctrl+Click to enter a value");
|
||||
igPopItemWidth();
|
||||
|
||||
if (sharpness != this->sharpness)
|
||||
|
|
Loading…
Reference in a new issue