本文整理汇总了Java中com.intellij.ui.Gray._175属性的典型用法代码示例。如果您正苦于以下问题:Java Gray._175属性的具体用法?Java Gray._175怎么用?Java Gray._175使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.ui.Gray
的用法示例。
在下文中一共展示了Gray._175属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: paintBorder
@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);
}
示例2: paintBorder
@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(GradleEditorUiConstants.BACKGROUND_COLOR);
g.fillRect(x, y, width, 3 + (SystemInfo.isMacOSLion ? 1 : 0));
g.fillRect(x, _y, 3, height);
g.fillRect(x, _y + height - 3, width, 3);
}