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

Bug 569224

Summary: [Big Sur] Different color for inactive selection background in Eclipse dark theme
Product: [Eclipse Project] Platform Reporter: Lakshmi P Shanmugam <lshanmug>
Component: SWTAssignee: Lakshmi P Shanmugam <lshanmug>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: a.nesheret, ben.cox, niraj.modi, sarika.sinha
Version: 4.18Flags: sarika.sinha: review+
Target Milestone: 4.18 RC2   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/172888
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=0b7996a256df44f498e70c0af9da8095fd6b1d9b
https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/173020
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a619411c5d0d6467d0725acb2b7d9dbec7707aca
Whiteboard:
Bug Depends on:    
Bug Blocks: 565691    
Attachments:
Description Flags
incorrect inactive selection color none

Description Lakshmi P Shanmugam CLA 2020-11-26 10:40:13 EST
The inactive selection background is initially wrong in Eclipse Table/Tree with the fix for Bug 565969. This can be seen in Package Explorer, Find Actions and other places.
Comment 1 Lakshmi P Shanmugam CLA 2020-11-26 10:46:25 EST
This is seen only in Eclipse when in dark theme, looks like the color is being initialised too early and the color for light theme is being used.
Comment 2 Lakshmi P Shanmugam CLA 2020-11-26 10:50:45 EST
Created attachment 284907 [details]
incorrect inactive selection color
Comment 3 Eclipse Genie CLA 2020-11-26 12:48:12 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/172888
Comment 4 Lakshmi P Shanmugam CLA 2020-11-27 05:37:46 EST
@Sarika,
This looks bad on Eclipse in BigSur and is a regression from Bug 565969.
Comment 5 Sarika Sinha CLA 2020-11-27 06:23:33 EST
Looks good for RC2.
Comment 7 Lakshmi P Shanmugam CLA 2020-11-27 13:04:18 EST
Thanks Niraj and Sarika for reviews.
Comment 8 Lakshmi P Shanmugam CLA 2020-11-27 13:04:53 EST
Verified in I20201127-1010
Comment 9 Lakshmi P Shanmugam CLA 2020-11-30 09:18:52 EST
Saw this problem again today with latest Eclipse. It still happens if the Package Explorer is open and shows selection after (re)starting Eclipse. It can be fixed by closing Package Explorer and restarting Eclipse.

On debugging saw that the Package Explorer Tree is drawn once before Eclipse is set to dark theme, this causes Display.getSecondarySelectedControlColor() to be set with the color for the light theme, instead of dark theme.

The complete fix would be to reinitialise all the colours when the theme is changed, but I don't want to make this change now in RC2. Will only reset the affected tree selection colors now, only look at the complete fix for 4.19.
Comment 10 Eclipse Genie CLA 2020-11-30 10:02:43 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/173020
Comment 12 Lakshmi P Shanmugam CLA 2020-12-01 04:23:28 EST
Fixed in I20201130-1800.
Comment 13 Lakshmi P Shanmugam CLA 2020-12-03 07:06:21 EST
Verified with I20201202-1800