diff options
author | Sergey Prigogin | 2016-09-14 20:52:04 +0000 |
---|---|---|
committer | Sergey Prigogin | 2016-09-14 20:52:04 +0000 |
commit | 56062ff827df2de5482b19cd88bc9eefe06439cc (patch) | |
tree | 0f948685f29501f62bdaccc4cd495cbdcbbef4f2 | |
parent | 043666743b59bda1ebadb96816b6493d8f8f4605 (diff) | |
download | eclipse.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
This reverts commit 043666743b59bda1ebadb96816b6493d8f8f4605.
Change-Id: I70941392b9a80e5d87a955c66238ac7fae7f6113
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java | 8 |
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 1e49e72a36b..04e4903c8aa 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$ |