Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2016-09-14 20:52:04 +0000
committerSergey Prigogin2016-09-14 20:52:04 +0000
commit56062ff827df2de5482b19cd88bc9eefe06439cc (patch)
tree0f948685f29501f62bdaccc4cd495cbdcbbef4f2
parent043666743b59bda1ebadb96816b6493d8f8f4605 (diff)
downloadeclipse.platform.text-56062ff827df2de5482b19cd88bc9eefe06439cc.tar.gz
eclipse.platform.text-56062ff827df2de5482b19cd88bc9eefe06439cc.tar.xz
eclipse.platform.text-56062ff827df2de5482b19cd88bc9eefe06439cc.zip
Revert "Bug 501451: Colors in appendStyleSheet should not be hard-coded."Y20160915-1000I20160915-0230I20160915-0200I20160914-2300I20160914-2000
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java
index 1e49e72a3..04e4903c8 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java
@@ -166,7 +166,7 @@ public class HTMLPrinter {
pageProlog.append("<html>"); //$NON-NLS-1$
- appendStyleSheet(pageProlog, styleSheet, fgRGB, bgRGB);
+ appendStyleSheet(pageProlog, styleSheet);
appendColors(pageProlog, fgRGB, bgRGB);
@@ -223,16 +223,16 @@ public class HTMLPrinter {
}
}
- private static void appendStyleSheet(StringBuffer buffer, String styleSheet, RGB fgRGB, RGB bgRGB) {
+ private static void appendStyleSheet(StringBuffer buffer, String styleSheet) {
if (styleSheet == null)
return;
// workaround for https://bugs.eclipse.org/318243
StringBuffer fg= new StringBuffer();
- appendColor(fg, fgRGB);
+ appendColor(fg, FG_COLOR_RGB);
styleSheet= styleSheet.replaceAll("InfoText", fg.toString()); //$NON-NLS-1$
StringBuffer bg= new StringBuffer();
- appendColor(bg, bgRGB);
+ appendColor(bg, BG_COLOR_RGB);
styleSheet= styleSheet.replaceAll("InfoBackground", bg.toString()); //$NON-NLS-1$
buffer.append("<head><style CHARSET=\"ISO-8859-1\" TYPE=\"text/css\">"); //$NON-NLS-1$

Back to the top