本文整理汇总了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;
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}