diff options
author | tod | 2003-11-17 19:32:14 +0000 |
---|---|---|
committer | tod | 2003-11-17 19:32:14 +0000 |
commit | f285f057931354c844bc8dd4a7b729f138d3414a (patch) | |
tree | 0d3e2c8c91f51f3fba956a4d687829cffd23cdea | |
parent | 65f54c513c9ddd5db6ae27dd12205a7125ca4cb8 (diff) | |
download | eclipse.platform.text-f285f057931354c844bc8dd4a7b729f138d3414a.tar.gz eclipse.platform.text-f285f057931354c844bc8dd4a7b729f138d3414a.tar.xz eclipse.platform.text-f285f057931354c844bc8dd4a7b729f138d3414a.zip |
Merge with MVM
-rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java index 7e15b6b454a..5fff5ce4cee 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/StatusLineContributionItem.java @@ -27,7 +27,6 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.jface.action.ContributionItem; import org.eclipse.jface.action.IAction; import org.eclipse.jface.action.StatusLineLayoutData; -import org.eclipse.jface.preference.JFacePreferences; import org.eclipse.jface.resource.JFaceColors; /** @@ -174,8 +173,14 @@ public class StatusLineContributionItem extends ContributionItem implements ISta */ public void fill(Composite parent) { - fLabel= new CLabel(parent, SWT.SHADOW_IN); - fLabel.setBackground(JFaceColors.getSchemeBackground(parent.getDisplay())); + fLabel= new CLabel(parent, SWT.NONE); + + Color[] colors = new Color[2]; + colors[0] = parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW); + colors[1] = fLabel.getBackground(); + int[] gradient = new int[] {JFaceColors.STATUS_PERCENT}; + fLabel.setBackground(colors, gradient); + fLabel.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { fMouseListener= null; |