Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 517508

Summary: SWT.ICON_SEARCH is ugly under Linux
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: SWTAssignee: Leo Ufimtsev <lufimtse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, arunkumar.thondapu, Lars.Vogel, lufimtse, ocroquette
Version: 4.3   
Target Milestone: 4.7.1   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/98352
https://bugs.eclipse.org/bugs/show_bug.cgi?id=TextGtkSearchEntry
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=060443c93dd7d07200925e17ed604990033643ab
https://git.eclipse.org/r/99140
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a8056906b41eb2845e36ea4b962b1544448ce563
https://git.eclipse.org/r/99154
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=982b35c1b0de3192655e62e5118ad045ab1efd5b
https://git.eclipse.org/r/101369
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=93fd1b94b4114f839a01942bd3807b123f978560
https://git.eclipse.org/r/101441
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=739ae1e9449d73fefaa99f0a8caabc5cb1e7d419
https://bugs.eclipse.org/bugs/show_bug.cgi?id=519866
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345477
Whiteboard:
Attachments:
Description Flags
Screenshot
none
Mac screenshot
none
Before(left) and after(right) patch none

Description Lars Vogel CLA 2017-05-31 05:53:19 EDT
SWT.ICON_SEARCH looks every ugly under Linux, looks beautiful under Mac OS. 

Can we change the usage icon?
Comment 1 Arun Thondapu CLA 2017-05-31 07:53:36 EDT
(In reply to Lars Vogel from comment #0)
> SWT.ICON_SEARCH looks every ugly under Linux, looks beautiful under Mac OS. 

Can you attach screenshots?

SWT uses these icons as supplied by the underlying OS and windowing system, so this would be a platform limitation IMO.
Comment 2 Lars Vogel CLA 2017-05-31 08:21:10 EDT
Olivier, can you upload the MAC icon?
Comment 3 Lars Vogel CLA 2017-05-31 08:22:06 EDT
Created attachment 268658 [details]
Screenshot
Comment 4 Olivier Croquette CLA 2017-05-31 08:22:57 EDT
Created attachment 268659 [details]
Mac screenshot

Here it is
Comment 5 Eclipse Genie CLA 2017-05-31 11:46:02 EDT
New Gerrit change created: https://git.eclipse.org/r/98352
Comment 6 Leo Ufimtsev CLA 2017-05-31 11:46:40 EDT
Created attachment 268671 [details]
Before(left) and after(right) patch
Comment 7 Leo Ufimtsev CLA 2017-05-31 11:58:26 EDT
> SWT.ICON_SEARCH looks every ugly under Linux, looks beautiful under Mac OS. 
> 
> Can we change the usage icon?

Yea:

> New Gerrit change created: https://git.eclipse.org/r/98352

We are using system icons and not our own.
However, the system has 'symbolic' versions of all icons, which look more like the mac equivalent.
Actually, the other icons were already symbolic, only the search icons were traditional. So I submitted a patch to use symbolic icons instead. See attached screenshot.

We'll have to wait for code unfreeze before merging.
Comment 8 Lars Vogel CLA 2017-05-31 13:16:52 EDT
Looks awesome, Leo. Thanks.
Comment 9 Arun Thondapu CLA 2017-05-31 13:42:58 EDT
(In reply to Leo Ufimtsev from comment #7)
> We are using system icons and not our own.
> However, the system has 'symbolic' versions of all icons, which look more
> like the mac equivalent.
> Actually, the other icons were already symbolic, only the search icons were
> traditional. So I submitted a patch to use symbolic icons instead. See
> attached screenshot.

Good find Leo!
Comment 10 Alexander Kurtakov CLA 2017-06-09 12:15:56 EDT
Leo, what about using https://developer.gnome.org/gtk3/stable/GtkSearchEntry.html ? It should simplify our code significantly.
Comment 11 Alexander Kurtakov CLA 2017-06-09 12:16:29 EDT
Leo, if you think it can work that way please handle it in separate bug.
Comment 12 Leo Ufimtsev CLA 2017-06-09 14:45:13 EDT
(In reply to Alexander Kurtakov from comment #10)
> Leo, what about using
> https://developer.gnome.org/gtk3/stable/GtkSearchEntry.html ? It should
> simplify our code significantly.

(In reply to Alexander Kurtakov from comment #11)
> Leo, if you think it can work that way please handle it in separate bug.

Indeed, good idea. Would require some work. Created followup bug:
Bug 518080 – Use GtkSearchEntry instead of gtkEntry + icon
Comment 14 Lars Vogel CLA 2017-06-09 15:49:53 EDT
Leo, I suggest to downport this to 4.7.1. WDYT?
Comment 15 Eclipse Genie CLA 2017-06-12 10:59:38 EDT
New Gerrit change created: https://git.eclipse.org/r/99140
Comment 17 Leo Ufimtsev CLA 2017-06-12 11:02:29 EDT
(In reply to Lars Vogel from comment #14)
> Leo, I suggest to downport this to 4.7.1. WDYT?

Done. Thanks.
Comment 18 Lars Vogel CLA 2017-06-12 11:14:13 EDT
(In reply to Leo Ufimtsev from comment #17)
> Done. Thanks.

Thanks. But I think you need to revert this and wait a bit longer. 4.7.1 will be opened after the 4.7.0 release.
Comment 19 Lars Vogel CLA 2017-06-12 11:15:14 EDT
Reopening for the downport
Comment 20 Eclipse Genie CLA 2017-06-12 12:12:43 EDT
New Gerrit change created: https://git.eclipse.org/r/99154
Comment 22 Leo Ufimtsev CLA 2017-06-12 12:15:31 EDT
(In reply to Lars Vogel from comment #18)
> (In reply to Leo Ufimtsev from comment #17)
> > Done. Thanks.
> 
> Thanks. But I think you need to revert this and wait a bit longer. 4.7.1
> will be opened after the 4.7.0 release.

Oh, I see. I thought since the 4_7 branch was created, it could be merged into.

I've reverted for now, awaiting 4.7.0 release.
Comment 23 Lars Vogel CLA 2017-07-17 07:46:35 EDT
(In reply to Leo Ufimtsev from comment #22)
> I've reverted for now, awaiting 4.7.0 release.

We could do the downport now.
Comment 24 Eclipse Genie CLA 2017-07-17 12:45:56 EDT
New Gerrit change created: https://git.eclipse.org/r/101369
Comment 26 Leo Ufimtsev CLA 2017-07-17 12:47:43 EDT
(In reply to Lars Vogel from comment #23)
> (In reply to Leo Ufimtsev from comment #22)
> > I've reverted for now, awaiting 4.7.0 release.
> 
> We could do the downport now.

Thank you. Done.

I'm lagging behind with my backports X-D. I'll try to finish outstanding backports this week-ish.
Comment 27 Lars Vogel CLA 2017-07-17 14:19:59 EDT
(In reply to Leo Ufimtsev from comment #26)

> I'm lagging behind with my backports X-D. I'll try to finish outstanding
> backports this week-ish.

Thanks.

FYI - If that commit was the first one for the plug-in in the maintenance branch, you also need to increase the patch version (major.minor.patch.buildqualifier) by "1" in the MANIFEST.MF and pom.xml of that plug-in. See https://wiki.eclipse.org/Version_Numbering
Comment 28 Eclipse Genie CLA 2017-07-18 10:32:06 EDT
New Gerrit change created: https://git.eclipse.org/r/101441
Comment 29 Leo Ufimtsev CLA 2017-07-18 10:33:34 EDT
(In reply to Eclipse Genie from comment #28)
> New Gerrit change created: https://git.eclipse.org/r/101441

Ah, I see. Thanks for pointing out.

Is this correct?