Community
Participate
Working Groups
N20070108-0010 The Hyperlink widget should be rendered gray when disabled (like the Link widget). Currently, it looks the same as if enabled (but does not change to "active" when the mouse points to it).
*** Bug 202536 has been marked as a duplicate of this bug. ***
Need to ensure that ImageHyperlink paints disabled as well when this is addressed (as discussed in bug 202536).
Created attachment 107358 [details] patch to paint disabled links grey This patch adds API to set the disabled color for specific Hyperlinks and on HyperlinkSettings. It also defaults the color to SWT.GREY. Unfortunately this solution is not good enough. This will not work if, for instance, the link is on a grey background. It will just disappear. This is uncharted territory as in the web there isn't really a concept of a disabled link. I think a good solution here would be to simply render the disabled link with the text foreground color and without the underline (i.e. paint it as text). I just wanted to see what people would think of this solution before I go ahead with it. Any thoughts?
Created attachment 107380 [details] patch to paint disabled links as text This patch causes hyperlinks to paint as static text.
I tested out the patch in comment 5 and it looks strange. It makes the hyperlinks look like weird, out of place text. I think I've come up with a winning solution though. I'm going to simply blend the foreground colour into the background colour. This should be visible and look disabled for all colour settings. With typical settings, this will cause disabled links to look blue-grey (blue links on a white background).
Created attachment 107495 [details] patch to blend disabled links into background The only potential problem with this patch is that if anyone has worked around the problem by changing the foreground colour themselves (when disabled), it will be their custom foreground colour that we blend. This could result in very light/hard to read links when disabled. Making the change now should give any affected parties time to discover the problem and remove their workarounds.
Patch applied to HEAD. Reopening bug 202536 to address the ImageHyperlink.
*** Bug 261866 has been marked as a duplicate of this bug. ***