mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Mac laf: fix Project View top border
(cherry picked from commit 5ad0b4f8e2356ac379e375ccd012f92e3753a28f)
This commit is contained in:
@@ -1639,11 +1639,24 @@ public class UIUtil {
|
||||
g.fillRect(x, 0, width, height);
|
||||
}
|
||||
g.setColor(new Color(0, 0, 0, toolWindow ? 90 : 50));
|
||||
if (drawTopLine) g.drawLine(x, 0, width, 0);
|
||||
if (drawTopLine && !(SystemInfo.isMac && isUnderIntelliJLaF())) g.drawLine(x, 0, width, 0);
|
||||
if (drawBottomLine) g.drawLine(x, height - (isRetina() ? 1 : 2), width, height - (isRetina() ? 1 : 2));
|
||||
|
||||
g.setColor(isUnderDarcula() ? Gray._255.withAlpha(30) : new Color(255, 255, 255, 100));
|
||||
g.drawLine(x, drawTopLine ? 1 : 0, width, drawTopLine ? 1 : 0);
|
||||
if (SystemInfo.isMac && isUnderIntelliJLaF()) {
|
||||
g.setColor(Gray.xC9);
|
||||
} else {
|
||||
g.setColor(isUnderDarcula() ? Gray._255.withAlpha(30) : new Color(255, 255, 255, 100));
|
||||
}
|
||||
if (isRetina()) {
|
||||
Graphics2D g2 = (Graphics2D)g.create(0, 0, width, height);
|
||||
g2.scale(0.5, 0.5);
|
||||
|
||||
g2.drawLine(2*x, 0, 2 * width, 0);
|
||||
g2.scale(1, 1);
|
||||
g2.dispose();
|
||||
} else {
|
||||
g.drawLine(x, drawTopLine ? 1 : 0, width, drawTopLine ? 1 : 0);
|
||||
}
|
||||
|
||||
} finally {
|
||||
config.restore();
|
||||
|
||||
Reference in New Issue
Block a user