Skip to content

Commit

Permalink
IDEA-146637 Border is off on the tool window's title
Browse files Browse the repository at this point in the history
  • Loading branch information
bulenkov committed Nov 19, 2015
1 parent 2dbde61 commit 5f9049f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions platform/util/src/com/intellij/util/ui/UIUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,9 @@ public static void drawHeader(Graphics g,
g.setColor(getPanelBackground());
g.fillRect(x, 0, width, height);

if (isRetina()) {
((Graphics2D)g).setStroke(new BasicStroke(2f));
}
((Graphics2D)g).setPaint(getGradientPaint(0, 0, Gray.x00.withAlpha(5), 0, height, Gray.x00.withAlpha(20)));
g.fillRect(x, 0, width, height);

Expand All @@ -1643,7 +1646,7 @@ public static void drawHeader(Graphics g,
g.setColor(isUnderDarcula() ? Gray._255.withAlpha(30) : Gray.xFF.withAlpha(100));
}

g.drawLine(x, drawTopLine ? 1 : 0, width, drawTopLine ? 1 : 0);
g.drawLine(x, 0, width, 0);
} finally {
config.restore();
}
Expand Down Expand Up @@ -1728,7 +1731,7 @@ public static void drawImage(Graphics g, Image image, int x, int y, ImageObserve
img = image;
}
newG.drawImage(img, 0, 0, observer);
newG.scale(1, 1);
//newG.scale(1, 1);
newG.dispose();
} else {
g.drawImage(image, x, y, observer);
Expand All @@ -1744,7 +1747,7 @@ public static void drawImage(Graphics g, BufferedImage image, BufferedImageOp op
img = image;
}
newG.drawImage((BufferedImage)img, op, 0, 0);
newG.scale(1, 1);
//newG.scale(1, 1);
newG.dispose();
} else {
((Graphics2D)g).drawImage(image, op, x, y);
Expand Down

0 comments on commit 5f9049f

Please sign in to comment.