Java Code Examples for com.intellij.util.ui.UIUtil#getBorderColor()

The following examples show how to use com.intellij.util.ui.UIUtil#getBorderColor() . 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: ArrangementColorsProviderImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
public ArrangementColorsProviderImpl(@Nullable ArrangementColorsAware colorsAware) {
  myColorsAware = colorsAware;

  // Default settings.
  myDefaultNormalAttributes.setForegroundColor(UIUtil.getTreeTextForeground());
  myDefaultNormalAttributes.setBackgroundColor(UIUtil.getPanelBackground());
  myDefaultSelectedAttributes.setForegroundColor(UIUtil.getTreeSelectionForeground());
  myDefaultSelectedAttributes.setBackgroundColor(UIUtil.getTreeSelectionBackground());
  myDefaultNormalBorderColor = UIUtil.getBorderColor();
  Color selectionBorderColor = UIUtil.getTreeSelectionBorderColor();
  if (selectionBorderColor == null) {
    selectionBorderColor = JBColor.black;
  }
  myDefaultSelectedBorderColor = selectionBorderColor;
}
 
Example 2
Source File: JBColor.java    From consulo with Apache License 2.0 5 votes vote down vote up
public static Color border() {
  return new JBColor(new NotNullProducer<Color>() {
    @Nonnull
    @Override
    public Color produce() {
      return UIUtil.getBorderColor();
    }
  });
}
 
Example 3
Source File: EdgeBorder.java    From consulo with Apache License 2.0 4 votes vote down vote up
public EdgeBorder(int i) {
  super(UIUtil.getBorderColor(), i);
}
 
Example 4
Source File: CustomLineBorder.java    From consulo with Apache License 2.0 4 votes vote down vote up
public CustomLineBorder(@Nonnull Insets insets) {
  this(UIUtil.getBorderColor(), insets);
}