Java Code Examples for com.intellij.ui.Gray#_95

The following examples show how to use com.intellij.ui.Gray#_95 . 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: DesktopFloatingDecorator.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Override
public final void paint(final Graphics g) {
  super.paint(g);
  final JBColor lightGray = new JBColor(Color.lightGray, Gray._95);
  final JBColor gray = new JBColor(Color.gray, Gray._95);
  if (ANCHOR_TOP == myAnchor) {
    g.setColor(lightGray);
    UIUtil.drawLine(g, 0, 0, getWidth() - 1, 0);
    UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
    g.setColor(JBColor.GRAY);
    UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
  }
  else if (ANCHOR_LEFT == myAnchor) {
    g.setColor(lightGray);
    UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
  }
  else {
    if (ANCHOR_BOTTOM == myAnchor) {
      g.setColor(lightGray);
      UIUtil.drawLine(g, 0, 0, 0, getHeight() - 1);
      g.setColor(gray);
      UIUtil.drawLine(g, 0, getHeight() - 1, getWidth() - 1, getHeight() - 1);
      UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
    }
    else { // RIGHT
      g.setColor(gray);
      UIUtil.drawLine(g, getWidth() - 1, 0, getWidth() - 1, getHeight() - 1);
    }
  }
}
 
Example 2
Source File: ButtonlessScrollBarUI.java    From consulo with Apache License 2.0 4 votes vote down vote up
public static JBColor getGradientLightColor() {
  return new JBColor(Gray._251, Gray._95);
}
 
Example 3
Source File: IntelliJButtonlessScrollBarUI.java    From consulo with Apache License 2.0 4 votes vote down vote up
public static JBColor getGradientLightColor() {
  return new JBColor(Gray._251, Gray._95);
}