-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor undeprevated Highlighter colors
- Loading branch information
1 parent
7456aaf
commit d59ef28
Showing
1 changed file
with
20 additions
and
13 deletions.
There are no files selected for viewing
33 changes: 20 additions & 13 deletions
33
src/main/java/tk/skuro/idea/orgmode/highlight/OrgHighlighterColors.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
); | ||
} |