Java Code Examples for com.intellij.ui.SimpleTextAttributes#STYLE_BOLD
The following examples show how to use
com.intellij.ui.SimpleTextAttributes#STYLE_BOLD .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LineParser.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
private static Object toStyle(String str) { switch (str) { case "1": return SimpleTextAttributes.STYLE_BOLD; case "3": return SimpleTextAttributes.STYLE_ITALIC; case "4": return SimpleTextAttributes.STYLE_UNDERLINE; case "9": return SimpleTextAttributes.STYLE_STRIKEOUT; case "30": return JBColor.BLACK; case "31": return JBColor.RED; case "32": return JBColor.GREEN; case "33": return JBColor.YELLOW; case "34": return JBColor.BLUE; case "35": return JBColor.MAGENTA; case "36": return JBColor.CYAN; case "37": return JBColor.WHITE; case "38": return JBColor.GRAY; default: return null; } }
Example 2
Source File: LineParser.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
private static Object toStyle(String str) { switch (str) { case "1": return SimpleTextAttributes.STYLE_BOLD; case "3": return SimpleTextAttributes.STYLE_ITALIC; case "4": return SimpleTextAttributes.STYLE_UNDERLINE; case "9": return SimpleTextAttributes.STYLE_STRIKEOUT; case "30": return JBColor.BLACK; case "31": return JBColor.RED; case "32": return JBColor.GREEN; case "33": return JBColor.YELLOW; case "34": return JBColor.BLUE; case "35": return JBColor.MAGENTA; case "36": return JBColor.CYAN; case "37": return JBColor.WHITE; case "38": return JBColor.GRAY; default: return null; } }
Example 3
Source File: TreeRenderer.java From MavenHelper with Apache License 2.0 | 5 votes |
public TreeRenderer(JCheckBox showGroupId, GuiForm guiForm) { this.showGroupId = showGroupId; this.guiForm = guiForm; errorBoldAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, SimpleTextAttributes.ERROR_ATTRIBUTES.getFgColor()); testAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, new JBColor(new Color(4, 111, 0), new Color(0x69AF80))); testBoldAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, testAttributes.getFgColor()); providedAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, new JBColor(new Color(0x02516D), new Color(0x028BBA))); providedBoldAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, providedAttributes.getFgColor()); runtimeAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, new JBColor(new Color(0x8D4E81), new Color(0xB264A5))); runtimeBoldAttributes = new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, runtimeAttributes.getFgColor()); }
Example 4
Source File: GraphQLConfigSchemaNode.java From js-graphql-intellij-plugin with MIT License | 4 votes |
@Override protected void update(PresentationData presentation) { super.update(presentation); final int style = representsCurrentFile() ? SimpleTextAttributes.STYLE_BOLD : SimpleTextAttributes.STYLE_PLAIN; presentation.addText(getName(), new SimpleTextAttributes(style, getColor())); }
Example 5
Source File: IssueLinkRenderer.java From consulo with Apache License 2.0 | 4 votes |
private static SimpleTextAttributes getLinkAttributes(final SimpleTextAttributes baseStyle) { return (baseStyle.getStyle() & SimpleTextAttributes.STYLE_BOLD) != 0 ? SimpleTextAttributes.LINK_BOLD_ATTRIBUTES : SimpleTextAttributes.LINK_ATTRIBUTES; }