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

Bug 547030

Summary: [macOS] StyledText link color is wrong in dark mojave mode
Product: [Eclipse Project] Platform Reporter: Thomas Singer <ts-swt>
Component: SWTAssignee: Lakshmi P Shanmugam <lshanmug>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: lshanmug, niraj.modi, peter, ts-swt
Version: 4.12   
Target Milestone: 4.13 M1   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/145093
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=39eec9ce0c110e5b7b0560c372ebb0f6bea4e83b
https://git.eclipse.org/r/145215
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=92bcb0b8000cd075049006fdb91aada0360630f3
Whiteboard:
Attachments:
Description Flags
Snippet
none
Screenshot on macOS 10.14 none

Description Thomas Singer CLA 2019-05-07 03:26:58 EDT
Please launch the attached snippet on macOS Mojave (10.14) and compare the link colors. Both should be equal and easy to read.
Comment 1 Thomas Singer CLA 2019-05-07 03:28:07 EDT
Created attachment 278509 [details]
Snippet
Comment 2 Thomas Singer CLA 2019-05-07 03:28:43 EDT
Created attachment 278510 [details]
Screenshot on macOS 10.14
Comment 3 Eclipse Genie CLA 2019-06-28 05:55:44 EDT
New Gerrit change created: https://git.eclipse.org/r/145093
Comment 4 Lakshmi P Shanmugam CLA 2019-06-28 06:13:33 EDT
Windows and GTK already use the same color as SWT.COLOR_LINK_FOREGROUND. The patch fixes this for Mac. Needs to be tested on 10.14 Dark mode.
Comment 6 Niraj Modi CLA 2019-07-01 06:47:24 EDT
(In reply to Eclipse Genie from comment #5)
> Gerrit change https://git.eclipse.org/r/145093 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=39eec9ce0c110e5b7b0560c372ebb0f6bea4e83b

Suggest to make field TextLayout#linkForeground static on cocoa:
- As value will be same for all TextLayout instances
Comment 7 Eclipse Genie CLA 2019-07-01 08:11:04 EDT
New Gerrit change created: https://git.eclipse.org/r/145215
Comment 9 Lakshmi P Shanmugam CLA 2019-07-02 01:15:04 EDT
(In reply to Niraj Modi from comment #6)
> (In reply to Eclipse Genie from comment #5)
> > Gerrit change https://git.eclipse.org/r/145093 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> > ?id=39eec9ce0c110e5b7b0560c372ebb0f6bea4e83b
> 
> Suggest to make field TextLayout#linkForeground static on cocoa:
> - As value will be same for all TextLayout instances

Thanks Niraj, done with the above commit.
Comment 10 Lakshmi P Shanmugam CLA 2019-07-09 08:10:15 EDT
Verified on I20190708-1800.