提交 09a6ceac 编写于 作者: S Skylot

gui: replace underline to color highlight (experimental)

上级 75d8a01c
......@@ -30,7 +30,8 @@ class CodeArea extends RSyntaxTextArea {
private static final long serialVersionUID = 6312736869579635796L;
public static final Color BACKGROUND = new Color(0xf7f7f7);
public static final Color BACKGROUND = new Color(0xFAFAFA);
public static final Color JUMP_TOKEN_FGD = new Color(0x491BA1);
private final CodePanel codePanel;
private final JClass cls;
......@@ -72,11 +73,11 @@ class CodeArea extends RSyntaxTextArea {
}
@Override
public boolean getUnderlineForToken(Token t) {
public Color getForegroundForToken(Token t) {
if (isJumpToken(t)) {
return true;
return JUMP_TOKEN_FGD;
}
return super.getUnderlineForToken(t);
return super.getForegroundForToken(t);
}
static Position getPosition(JClass jCls, RSyntaxTextArea textArea, int offset) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册