Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 87088

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: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact: Bogdan Gheorghe <gheorghe>
Severity: normal    
Priority: P3 CC: farrellp
Version: 3.1Keywords: triaged
Target Milestone: ---   
Hardware: Sun   
OS: Solaris-GTK   
Whiteboard:

Description Brian So CLA 2005-03-03 12:07:49 EST
When I was going through the Eclipse 3.1M5a examples (eclipse-examples-
3.1M5a.zip), I realized that changing the foreground color did not change the 
color of the progress bar.

Here are the steps to regenerate this scenario:
1. Install Eclipse 3.1M5a on Solaris 9.
2. Download Eclipse 3.1M5a Examples and install them.
3. Launch Eclipse
4. Select “Window -> Show View -> Other…”. This will launch the “Show View” 
Dialog.
5. From the “Show View” Dialog, select “SWT Examples -> SWT Controls”. This 
will display “SWT Controls” View.
6. From SWT Controls View, select “ProgressBar” tab.
7. In the “Color and Font” group, change the "Foreground Color" to red.
Expected Behavior: The progress bar 's color should change to red.
Actual Behavior: The progress bar's color did not change.
Comment 1 Veronika Irvine CLA 2005-03-03 12:18:29 EST
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.
Comment 2 Brian So CLA 2005-03-03 16:29:45 EST
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.
Comment 3 Wynne Crisman CLA 2005-06-18 02:03:00 EDT
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
Comment 4 Grant Gayed CLA 2005-06-20 08:04:28 EDT
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.
Comment 5 Grant Gayed CLA 2009-09-25 16:42:25 EDT
Moving report to triage, see http://www.eclipse.org/swt/triage.php
for more info about swt bug handling.
Comment 6 Lakshmi P Shanmugam CLA 2017-06-20 02:38:44 EDT
Solaris is no longer a supported platform.