当前位置: 首页>>代码示例>>Java>>正文


Java Gray._75属性代码示例

本文整理汇总了Java中com.intellij.ui.Gray._75属性的典型用法代码示例。如果您正苦于以下问题:Java Gray._75属性的具体用法?Java Gray._75怎么用?Java Gray._75使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.ui.Gray的用法示例。


在下文中一共展示了Gray._75属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getBorder

@Override
public Border getBorder() {
  //avoid moving lines
  if (myState == State.EXPANDING || myState == State.COLLAPSING) {
    return new EmptyBorder(0,0,0,0);
  }

  //fix for Darcula double border
  if (myState == State.TEMPORARY_EXPANDED && UIUtil.isUnderDarcula()) {
    return new CustomLineBorder(Gray._75, 0, 0, 1, 0);
  }

  //save 1px for mouse handler
  if (myState == State.COLLAPSED) {
    return new EmptyBorder(0, 0, 1, 0);
  }

  return UISettings.getInstance().SHOW_MAIN_TOOLBAR || UISettings.getInstance().SHOW_NAVIGATION_BAR ? super.getBorder() : null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:IdeMenuBar.java

示例2: getBorder

@Override
public Border getBorder() {
  //avoid moving lines
  if (myState == State.EXPANDING || myState == State.COLLAPSING) {
    return new EmptyBorder(0,0,0,0);
  }

  //fix for Darcula double border
  if (myState == State.TEMPORARY_EXPANDED && UIUtil.isUnderDarcula()) {
    return new CustomLineBorder(Gray._75, 0, 0, 1, 0);
  }

  //save 1px for mouse handler
  if (myState == State.COLLAPSED) {
    return new EmptyBorder(0, 0, 1, 0);
  }

  return super.getBorder();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:19,代码来源:IdeMenuBar.java

示例3: paintComponent

@Override
protected void paintComponent(Graphics g) {
  super.paintComponent(g);
  Color GRADIENT_C1 = new JBColor(getBackground(), JBColor.background());
  Color GRADIENT_C2 = new JBColor(new Color(Math.max(0, GRADIENT_C1.getRed() - 0x18), Math.max(0, GRADIENT_C1.getGreen() - 0x18),
                                            Math.max(0, GRADIENT_C1.getBlue() - 0x18)), Gray._75);

  final Graphics2D g2d = (Graphics2D)g;

  if (!UIUtil.isUnderGTKLookAndFeel()) {
    g2d.setPaint(UIUtil.getGradientPaint(0, 0, GRADIENT_C1, 0, getHeight(), GRADIENT_C2));
    g2d.fillRect(1, 1, getWidth(), getHeight() - 1);
    g2d.setPaint(null);
  }

  g.setColor(UIUtil.getBorderColor());
  g.drawLine(0, getHeight() - 1, getWidth(), getHeight() - 1);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:EditorHeaderComponent.java

示例4: getPassiveFg

@Override
protected Color getPassiveFg(boolean selected) {
  if (contentManager().getContentCount() > 1) {
     return selected && !UIUtil.isUnderDarcula() ? Gray._255 : UIUtil.isUnderDarcula()? UIUtil.getLabelDisabledForeground() : Gray._75;
   }
   return super.getPassiveFg(selected);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ContentTabLabel.java

示例5: getPassiveFg

@Override
protected Color getPassiveFg(boolean selected) {
  if (contentManager().getContentCount() > 1) {
    return selected && !UIUtil.isUnderDarcula() ? Gray._255 : UIUtil.isUnderDarcula()? UIUtil.getLabelDisabledForeground() : Gray._75;
  }
  return super.getPassiveFg(selected);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:ContentTabLabel.java


注:本文中的com.intellij.ui.Gray._75属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。