| Summary: | [SWT Examples - SWT Controls] Change the "foreground Color" has no impact on the color of the progress bar on ProgressBar | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brian So <bso> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | Bogdan Gheorghe <gheorghe> |
| Severity: | normal | ||
| Priority: | P3 | CC: | farrellp |
| Version: | 3.1 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | Sun | ||
| OS: | Solaris-GTK | ||
| Whiteboard: | |||
|
Description
Brian So
Setting foreground and background colours for some widgets is not supported on all platforms. If the widget uses a non-flat appearance (e.g. a round glass or a texture or a gradient appearnce) then setting the background or foreground colour will usually have no effect. Assigning to Grant to confirm that this is one of those cases and to add to his platform comparison document. SWT Examples - SWT Controls - Slider/Scale: When I set the Foreground color, this is no change. But when I set the Background color the "slide bar" on both the Slider and Scale change color. This is just the opposite of the progress bar widget. There is a similar problem for button. It seems to me that if foreground and background color accessors are provided and don't cause an error, then the color should be used by the component. Otherwise it is a bug. I would really like to be able to change the button appearance. ~Wynne Assuming that you're referring to Button background colours not changing on win32 or OSX, these are platform limitations that are addressed in bug 36055. Setting this background is supported for Button on the other platforms, which is why the accessors are provided. Moving report to triage, see http://www.eclipse.org/swt/triage.php for more info about swt bug handling. Solaris is no longer a supported platform. |