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

The following examples show how to use com.intellij.ui.Gray#_200 . 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: PluginHeaderPanel.java    From consulo with Apache License 2.0 6 votes vote down vote up
public PluginHeaderPanel(@Nullable PluginManagerMain manager, JTable pluginTable) {
  myManager = manager;
  myPluginTable = pluginTable;
  final Font font = myName.getFont();
  myName.setFont(new Font(font.getFontName(), font.getStyle(), font.getSize() + 2));
  final JBColor greyed = new JBColor(Gray._130, Gray._200);
  myCategory.setForeground(greyed);
  myDownloads.setForeground(greyed);
  myUpdated.setForeground(greyed);
  myVersion.setForeground(greyed);
  final Font smallFont = new Font(font.getFontName(), font.getStyle(), font.getSize() - 1);
  myCategory.setFont(smallFont);
  myVersion.setFont(smallFont);
  myDownloads.setFont(smallFont);
  myUpdated.setFont(smallFont);
  myRoot.setVisible(false);
}
 
Example 2
Source File: FixedComboBoxEditor.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
  Color topColor;
  Color secondTopColor;
  Color leftRightColor;
  Color bottomColor;

  if (myDisabled) {
    topColor = Gray._200;
    secondTopColor = Gray._250;
    leftRightColor = Gray._205;
    bottomColor = Gray._220;
  }
  else {
    topColor = Gray._150;
    secondTopColor = Gray._230;
    leftRightColor = Gray._175;
    bottomColor = Gray._200;
  }

  int _y = y + MacUIUtil.MAC_COMBO_BORDER_V_OFFSET;
  
  g.setColor(topColor);
  g.drawLine(x + 3, _y + 3, x + width - 1, _y + 3);

  g.setColor(secondTopColor);
  g.drawLine(x + 3, _y + 4, x + width - 1, _y + 4);

  g.setColor(leftRightColor);
  g.drawLine(x + 3, _y + 4, x + 3, _y + height - 4);
  g.drawLine(x + width - 1, _y + 4, x + width - 1, _y + height - 4);

  g.setColor(bottomColor);
  g.drawLine(x + 4, _y + height - 4, x + width - 2, _y + height - 4);

  g.setColor(UIUtil.getPanelBackground());

  g.fillRect(x,  y, width, 3 + (SystemInfo.isMacOSLion ? 1 : 0));
  g.fillRect(x, _y, 3, height);
  g.fillRect(x, _y + height - 3, width, 3);
}
 
Example 3
Source File: MacButtonlessScrollbarUI.java    From consulo with Apache License 2.0 4 votes vote down vote up
/**
 * @return color for thumb. return JBColor but for now dark variant is not supported
 */
private static JBColor getThumbColor() {
  return new JBColor(Gray._200, Gray._80);
}