Skip to content

Commit

Permalink
refactor undeprevated Highlighter colors
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrieanKhisbe committed Dec 31, 2014
1 parent 7456aaf commit d59ef28
Showing 1 changed file with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
package tk.skuro.idea.orgmode.highlight;

import java.awt.Font;

import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.editor.markup.EffectType;
import com.intellij.openapi.editor.markup.TextAttributes;

import static com.intellij.openapi.editor.DefaultLanguageHighlighterColors.*;
import static com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey;

/**
*
* @author Carlo Sciolla
* @since 0.1
*/
public interface OrgHighlighterColors {
// TODO obsolete, replace with new way to do.

public static final TextAttributesKey COMMENTS_ATTR_KEY = TextAttributesKey.createTextAttributesKey(
"ORG.COMMENT", new TextAttributes(null, null, null, null, Font.ITALIC)
);

public static final TextAttributesKey OUTLINE_ATTR_KEY = TextAttributesKey.createTextAttributesKey(
"ORG.OUTLINE", new TextAttributes(null, null, null, null, Font.BOLD)
);
/**
* Default style for outline
*/
// TODO: different style for outline levels
public static final TextAttributesKey OUTLINE_ATTR_KEY = createTextAttributesKey("ORG.OUTLINE", KEYWORD);

/**
* Default style of comments
*/
public static final TextAttributesKey COMMENTS_ATTR_KEY = createTextAttributesKey("ORG.COMMENT", LINE_COMMENT);

/**
* Default style of underline text
*/
public static final TextAttributesKey UNDERLINE_ATTR_KEY = createTextAttributesKey("ORG.UNDERLINE", STRING);


public static final TextAttributesKey UNDERLINE_ATTR_KEY = TextAttributesKey.createTextAttributesKey(
"ORG.UNDERLINE", new TextAttributes(null, null, null, EffectType.LINE_UNDERSCORE, Font.PLAIN)
);
}

0 comments on commit d59ef28

Please sign in to comment.