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

Bug 342543

Summary: Icon decorators not visible in high contrast mode
Product: [Tools] MAT Reporter: Krum Tsvetkov <krum.tsvetkov>
Component: GUIAssignee: Andrew Johnson <andrew_johnson>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: thatnitind
Version: 1.0Keywords: accessibility
Target Milestone: 1.8.1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/128092
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=ff6fce8e2a7b7d61327fb1a9ea64fe542c4e0cf5
https://git.eclipse.org/r/128137
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=4d961e435d28c71a3f84ee6d1492ca5035d83d4a
https://git.eclipse.org/r/128140
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=b80b22524fc253852e1d537c756fe7070c825974
https://git.eclipse.org/r/128311
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=21fa8124c2b81302a3048ed7d6dd6159b8429c7f
https://git.eclipse.org/r/128317
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=e5247e955466ad618a129b6f7fb3c87006fe8960
https://git.eclipse.org/r/128435
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=717ba4009a74e7a07f33896b21b60675777e5821
https://git.eclipse.org/r/128460
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=979d6f4dba20ae2605acbeda3ee351651cde0b3c
https://git.eclipse.org/r/128480
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=89d37b74a65147b47e8f18a961c20769cdb9650c
https://git.eclipse.org/r/128489
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=0898f5b1db0bb3ac6f9e2a9486f62fec65cc699c
https://git.eclipse.org/r/128509
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=d76d57661bd6bea19dceac2d31b23d0737c86c8b
https://git.eclipse.org/r/128511
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=5c8d286cab75087a235a0423101e52f7e8e83e20
https://git.eclipse.org/r/128561
https://git.eclipse.org/c/mat/org.eclipse.mat.git/commit/?id=856d1d3a3598a9b800b80d74c6a71153b2d36e7b
Whiteboard:
Bug Depends on:    
Bug Blocks: 300655    
Attachments:
Description Flags
Example with blue arrow indicator none

Description Krum Tsvetkov CLA 2011-04-12 07:16:47 EDT
The icon decorators in the object list view are black and go outside the white icon. Thus they are invisible in high contrast mode.

Steps to Reproduce:
1. On windows use left-alt + left shift + print screen to set accessible mode
2. open a heapdump
3. open the histogram and choose from the context menu "List Objects" with either incoming or outgoing references.
Comment 1 Andrew Johnson CLA 2011-07-07 09:24:00 EDT
See http://wiki.eclipse.org/UI_Graphics_:_Design_:_Style for some guidelines.
Comment 2 Andrew Johnson CLA 2012-05-18 08:26:22 EDT
The decorator is visible when the row is selected, which helps a little.
Comment 3 Andrew Johnson CLA 2012-09-14 11:40:06 EDT
The totals row sum sigma icon is also hard to read - just a faint red partial outline.

These icons are provided by the org.eclipse.mat.api plugin via the org/eclipse/mat/snapshot/query/Icons.java class.
This is meant to be independent of o.e.mat.ui or awt so it can run in batch mode, so we can't easily tell if we are in high contrast mode.
Comment 4 Andrew Johnson CLA 2012-12-04 09:19:02 EST
Created attachment 224265 [details]
Example with blue arrow indicator

Here is an example screen shot showing the object icon with decorators in blue (40,98,150), the same colour as the array/class indicator. A darker blue would
be (0,64,128). The class and classloader decorators remain black as a comparison.
Does blue or black look best? If black looks best, is the difference small enough
that blue is acceptable given the improved visibility in high contrast mode?
Comment 5 Andrew Johnson CLA 2018-08-26 07:04:27 EDT
This is also a problem with the new Eclipse dark themes.
Comment 6 Andrew Johnson CLA 2018-08-26 16:17:51 EDT
Updated the in/out icons, also the sum and @ address icon and superclass icon for better visibility in dark theme mode.
Also updated the overview chart to have more readable text if the foreground colour is too close to background
(as in dark theme mode the canvas is dark gray background, but black foreground).

The HTML reports still have a white background in dark theme.
Comment 7 Eclipse Genie CLA 2018-08-26 16:21:05 EDT
New Gerrit change created: https://git.eclipse.org/r/128092
Comment 9 Andrew Johnson CLA 2018-08-26 17:43:57 EDT
The icons have now been updated. The EcliPaint icon editor was very useful, though the icons are now about 600 bytes bigger.
Comment 10 Eclipse Genie CLA 2018-08-27 10:09:13 EDT
New Gerrit change created: https://git.eclipse.org/r/128137
Comment 12 Eclipse Genie CLA 2018-08-27 10:53:50 EDT
New Gerrit change created: https://git.eclipse.org/r/128140
Comment 14 Eclipse Genie CLA 2018-08-29 11:40:11 EDT
New Gerrit change created: https://git.eclipse.org/r/128311
Comment 16 Eclipse Genie CLA 2018-08-29 12:37:25 EDT
New Gerrit change created: https://git.eclipse.org/r/128317
Comment 18 Eclipse Genie CLA 2018-08-31 07:28:47 EDT
New Gerrit change created: https://git.eclipse.org/r/128435
Comment 20 Eclipse Genie CLA 2018-08-31 11:44:15 EDT
New Gerrit change created: https://git.eclipse.org/r/128460
Comment 22 Eclipse Genie CLA 2018-08-31 16:33:18 EDT
New Gerrit change created: https://git.eclipse.org/r/128480
Comment 24 Eclipse Genie CLA 2018-09-01 05:33:48 EDT
New Gerrit change created: https://git.eclipse.org/r/128489
Comment 26 Eclipse Genie CLA 2018-09-02 07:23:38 EDT
New Gerrit change created: https://git.eclipse.org/r/128509
Comment 28 Eclipse Genie CLA 2018-09-02 09:15:15 EDT
New Gerrit change created: https://git.eclipse.org/r/128511
Comment 30 Eclipse Genie CLA 2018-09-03 09:26:48 EDT
New Gerrit change created: https://git.eclipse.org/r/128561