Java Code Examples for com.intellij.ui.JBColor#blue()

The following examples show how to use com.intellij.ui.JBColor#blue() . 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: FlutterLogColors.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@NotNull
public static Color forCategory(@NotNull String category) {
  if (category.equals(ERROR_CATEGORY)) {
    return JBColor.red;
  }
  if (category.startsWith("flutter.")) {
    return JBColor.gray;
  }
  if (category.startsWith("runtime.")) {
    return UIUtil.isUnderDarcula() ? JBColor.magenta : JBColor.pink;
  }
  if (category.equals("http")) {
    return JBColor.blue;
  }

  // TODO(pq): add more presets.

  // Default.
  return JBColor.darkGray;
}
 
Example 2
Source File: FlutterLogColors.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@NotNull
public static Color forCategory(@NotNull String category) {
  if (category.equals(ERROR_CATEGORY)) {
    return JBColor.red;
  }
  if (category.startsWith("flutter.")) {
    return JBColor.gray;
  }
  if (category.startsWith("runtime.")) {
    return UIUtil.isUnderDarcula() ? JBColor.magenta : JBColor.pink;
  }
  if (category.equals("http")) {
    return JBColor.blue;
  }

  // TODO(pq): add more presets.

  // Default.
  return JBColor.darkGray;
}
 
Example 3
Source File: SlingServerTreeStructure.java    From aem-ide-tooling-4-intellij with Apache License 2.0 4 votes vote down vote up
public TextInfoNodeDescriptorSling(Project project, NodeDescriptor parentDescriptor, String text) {
    super(project, parentDescriptor);
    myName = text;
    myColor = JBColor.blue;
}