retain hidden_color (i.e. transparent white) instead of replacing it by semantic text color, to make control symbols more hidden and avoid "dirty" lines with some fonts;
--- a/src/Tools/jEdit/src/isabelle_rendering.scala Sat Nov 24 19:01:08 2012 +0100
+++ b/src/Tools/jEdit/src/isabelle_rendering.scala Sat Nov 24 19:56:44 2012 +0100
@@ -488,10 +488,12 @@
def text_color(range: Text.Range, color: Color)
: Stream[Text.Info[Color]] =
{
- snapshot.cumulate_markup(range, color, Some(text_color_elements),
- {
- case (_, Text.Info(_, XML.Elem(Markup(m, _), _)))
- if text_colors.isDefinedAt(m) => text_colors(m)
- })
+ if (color == Token_Markup.hidden_color) Stream(Text.Info(range, color))
+ else
+ snapshot.cumulate_markup(range, color, Some(text_color_elements),
+ {
+ case (_, Text.Info(_, XML.Elem(Markup(m, _), _)))
+ if text_colors.isDefinedAt(m) => text_colors(m)
+ })
}
}
--- a/src/Tools/jEdit/src/token_markup.scala Sat Nov 24 19:01:08 2012 +0100
+++ b/src/Tools/jEdit/src/token_markup.scala Sat Nov 24 19:56:44 2012 +0100
@@ -122,7 +122,7 @@
private def bold_style(style: SyntaxStyle): SyntaxStyle =
font_style(style, _.deriveFont(Font.BOLD))
- private def hidden_color: Color = new Color(255, 255, 255, 0)
+ val hidden_color: Color = new Color(255, 255, 255, 0)
class Style_Extender extends SyntaxUtilities.StyleExtender
{