| Summary: | [Preferences] JFace colors for links should map to Platform Link color | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Michael Van Meekeren <michaelvanmeekeren> |
| Component: | UI | Assignee: | Duong Nguyen <duongn> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse, kpeter, lindawat, markus.kell.r |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
what's the status on this one? We should do it for 3.1 These are API so they will have to wait. We need to decide how to relate the platform and user colors as the API colors are kind of redundant now. Could we just create the SWT link widget and query the color to get a default link color in JFace? You would have some flash while you created it perhaps but this is not a bad idea. We already do such a thing for shells as I understand it. There is code somewhere that creates a shell just to rip the font out of it. It's never shown so there's no flicker... *** This bug has been marked as a duplicate of bug 163335 *** |
The default colours for HYPERLINKS should be based on the SWT Link widget by default. Also changing these does not make the PreferenceLinkArea change it's color. /** * Get the default color to use for displaying hyperlinks. */ public static Color getHyperlinkText(Display display) { return JFaceResources.getColorRegistry().get( JFacePreferences.HYPERLINK_COLOR); } /** * Get the default color to use for displaying active hyperlinks. */ public static Color getActiveHyperlinkText(Display display) { return JFaceResources.getColorRegistry().get( JFacePreferences.ACTIVE_HYPERLINK_COLOR);