Community
Participate
Working Groups
HEAD, follow-up to bug 312966 comment 11 HTMLPrinter should refresh cached OS colors when they were changed. Should listen to the SWT.Settings event and refresh the static fields.
Better solution: Get rid of the cache! Use 'InfoText' as fg color and 'InfoBackground' as bg color. Targeting 3.7, but we could also do this for 3.6. We already use 'color: InfoText' in JavadocHoverStyleSheet.css, and that worked fine so far.
Created attachment 170197 [details] Fix
Fixed in HEAD.
Reverted the change in HTMLPrinter: 1.) Didn't work on the Mac (created 2 style="..." attributes) 2.) Even with (1) fixed, InfoBackground color was not the same as the SWT tooltip bg color. On first sight, it looked like SWT.COLOR_INFO_BACKGROUND is not the OS's color. I'll investigate. 3.) Test failure in AntEditorTests#testHoverForPath(). Need to synchronize with the Ant team when a better patch is ready.
(In reply to comment #4) > 2.) InfoBackground color was not the same as the SWT tooltip bg color. That's bug 317843. Bug 318243 also indicates that it's probably best if we don't rely on InfoText and InfoBackground, since browsers seem to be unreliable in that area.
Created attachment 175224 [details] Fix 2 This fix refreshes the colors when the OS settings are changed. HTMLPrinter#convertInfoTextColor(String) is not strictly necessary to fix this bug, but it will be used by bug 318243. AntEditorTests#testHoverForPath() is not affected by this change nor by bug 318243 (stays green).
Fix 2 committed to HEAD. Dani, please review for 3.6.1.
+1 for 3.6.1.
>HTMLPrinter#convertInfoTextColor(String) is not strictly necessary to fix this >bug, but it will be used by bug 318243. Review for that is in bug 318243.
This does not work on Ubuntu 9.04 (gtk version 2.16.1-0) Filed bug 321595.
*** Bug 318243 has been marked as a duplicate of this bug. ***
Created attachment 176792 [details] Fix for 3.6.1 Patch accumulates all changes from HEAD and also fixes bug 318243.
Does this effect the Ant tests?
(In reply to comment #13) > Does this effect the Ant tests? It doesn't affect the Ant tests (it's effectively the same code as in HEAD). It also doesn't effect (i.e. implement) any new Ant tests ;-).
+1 for 3.6.1 RC2.
Released to R3_6_maintenance.
Verified for 3.6.1 RC2 with M20100825-0800 on WinXP.
Verified on Windows 7 using M20100825-0800.