-
Notifications
You must be signed in to change notification settings - Fork 227
Improve Quick Search Dialog UI #3328
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
base: master
Are you sure you want to change the base?
Conversation
58e4a5c
to
dbea632
Compare
a7d0451
to
bbce42a
Compare
Nice work. Always good so see such small but very helpfull improvement. If am unsure about this:
Why do you think that the icon is better then text button? Couldn't we also keep the button but add the icon to the button? |
I have the feeling that the "icon" only would be correct if it's in a toolbar. But here we have a dialog that does not have a toolbar and for me it feels more correct to have a button. |
Would love to do. Thanks. Anything which basically improves the user experience - i am happy to contribute there :)
Let me check on it and update you. |
image 1: used specifically for file refresh (e.g., synchronizing a file with the filesystem).
image 2: the more generic refresh icon, used in contexts like search results, project refresh, or view updates.
Since in this dialog the action is to refresh the search results, I chose the generic refresh icon. |
Yes. I agree. |
bbce42a
to
c08610f
Compare
@BeckerWdf Please do share me an opinion on this? Alignment and spacing needs to be set, nothing finalized, just tried. |
9fbdf90
to
d8a69d8
Compare
@BeckerWdf Thanks for checking with UI experts. Regarding why the button is needed:
So while it may not be used often, it provides an escape hatch when results are stale. Hope i have answered all your questions. Thanks. |
No worries. This happens to all of us.
Sure. I am always happy to help in the UX area there it's possible
Understood. I expected something like this. |
searchIn.setToolTipText(Messages.QuickSearchDialog_InTooltip); | ||
GridDataFactory.fillDefaults().grab(true, false).indent(5, 0).applyTo(searchIn); | ||
|
||
// Refresh button next to pattern field towards extreme right |
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't we use something like:
Button refreshButton = createButton(inputRow, REFRESH_BUTTON_ID, Messages.QuickSearchDialog_Refresh, false); GridDataFactory.swtDefaults().align(SWT.CENTER, SWT.CENTER).grab(false, false).applyTo(refreshButton); refreshButton.addListener(SWT.Selection, e -> refreshButtonPressed())
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.
Button refreshButton = createButton(inputRow, REFRESH_BUTTON_ID, Messages.QuickSearchDialog_Refresh, false); GridDataFactory.swtDefaults().align(SWT.CENTER, SWT.CENTER).grab(false, false).applyTo(refreshButton); refreshButton.addListener(SWT.Selection, e -> refreshButtonPressed())
I just tried your suggestion as is and thinking this is more lesser lines of code(looks more appealing and readable for me too.). But when i tested i am seeing this small behavior change where alignment is lost.
In the image, 1st section corresponds to createButton() kind of creation of button.
2nd section as per the existing pr change.
But thanks for letting me know various ways of thinking to address the same issue. Hope i have answered all the concerns raised. If i have missed any please do let me know.
Thanks alot @BeckerWdf in advance.
532dc80
to
7d36d8d
Compare
- Auto-show first result in preview. - Clear preview when search is empty removing stale entries. - Move Refresh button to the search pattern line towards the right end.
7d36d8d
to
812b598
Compare
This pr basically addresses the below issues
Multiple search results

Before :
After :

1 Search result

Before :
After :

Before :

After :

Before :
After :

Please do let me know if you have any suggestions in the same context.