Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritrimble2010-03-29 22:40:24 +0000
committeritrimble2010-03-29 22:40:24 +0000
commit82caae9147fd8d9b90c183b3385b5487acdcf2b5 (patch)
tree7dad54df247a1cb53e4c659a8eff0c92cd4c8a99
parentee59105655a6eb1c9c2d9def01916762c5e6ae76 (diff)
downloadwebtools.jsf-82caae9147fd8d9b90c183b3385b5487acdcf2b5.tar.gz
webtools.jsf-82caae9147fd8d9b90c183b3385b5487acdcf2b5.tar.xz
webtools.jsf-82caae9147fd8d9b90c183b3385b5487acdcf2b5.zip
Bug 191539 - [WPE] non-standard selection color in Web Page Editor
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/layout/CSSTextFigure.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/layout/CSSTextFigure.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/layout/CSSTextFigure.java
index afb0f46c6..a78ba8f9e 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/layout/CSSTextFigure.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/layout/CSSTextFigure.java
@@ -25,8 +25,10 @@ import org.eclipse.jst.pagedesigner.css2.provider.ICSSTextProvider;
import org.eclipse.jst.pagedesigner.css2.style.DefaultStyle;
import org.eclipse.jst.pagedesigner.css2.style.StyleUtil;
import org.eclipse.jst.pagedesigner.viewer.CaretPositionResolver;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
+import org.eclipse.swt.widgets.Display;
/**
* @author mengbo
@@ -168,13 +170,14 @@ public class CSSTextFigure extends FlowFigure implements ICSSFigure {
.getStyleProperty(ICSSPropertyID.ATTR_TEXTDECORATION))
.intValue());
} else {
+ //Bug 191539 - [WPE] non-standard selection color in Web Page Editor
TextLayoutSupport.paintTextFigureWithSelection(g, _fragments,
_provider.getTextData(), getCSSStyle().getCSSFont()
.getSwtFont(), color, ((Integer) getCSSStyle()
.getStyleProperty(
ICSSPropertyID.ATTR_TEXTDECORATION))
.intValue(), range[0], range[1],
- ColorConstants.white, ColorConstants.blue);
+ ColorConstants.white, Display.getDefault().getSystemColor(SWT.COLOR_LIST_SELECTION));
}
if (color != result && color != null) {
color.dispose();

Back to the top