On Fri, 25 Mar 2022 07:57:33 GMT, Prasanta Sadhukhan <[email protected]> wrote:
>> @prsadhuk Thank you for mentioning >> [JDK-8261243](https://bugs.openjdk.java.net/browse/JDK-8261243) issue. It is >> similar to the JTable cell focus ring. >> >> If we decide to go with the blue focus ring it would cause the same issue as >> described in [JDK-8261243](https://bugs.openjdk.java.net/browse/JDK-8261243) >> >> If we choose the system color approach, below are my observations - >> >> The selectionBackground in JTable matches the accent color. The >> selectionBackground is a system color that maps to >> [alternateSelectedControlColor](https://developer.apple.com/documentation/appkit/nscolor/1533135-alternateselectedcontrolcolor) >> type property. On the right we can see that the selectionBackground color >> of JTable (which matches the accent color). >> >>  >> >> Since the selectionBackground color for JTable is same as the accent color >> the focus ring won't be visible unless it is **LIGHTER** than accent color >> as suggested in the >> [JDK-8261243](https://bugs.openjdk.java.net/browse/JDK-8261243). We could >> change the present code not to do any hue offsets which would look as >> follows - >> >>  > > I guess "selectionBackground" matches the "highlight" color which seems to > follow accent color, by default but we can make highlight color different > from accent color, but in this case focus color should match accent color, > not highlight color...please confirm if this is what is happening.. > Also, alternateSelectedControlColor is deprecated so you should consider > replacing with > [selectedContentBackgroundColor](https://developer.apple.com/documentation/appkit/nscolor/2998830-selectedcontentbackgroundcolor) @prsadhuk Cell Focus ring color does not change with highlight color settings. Tested for following cases - <img width="1060" alt="image" src="https://user-images.githubusercontent.com/95945681/160217226-7d4236c7-1d3e-4062-8fad-974a13374624.png"> ------------- PR: https://git.openjdk.java.net/jdk/pull/7768
