make navbar brighter on mac for new icons

This commit is contained in:
Konstantin Bulenkov
2012-10-22 01:50:41 +02:00
parent 6da3f92af0
commit 453fa48563
2 changed files with 7 additions and 6 deletions
@@ -16,6 +16,7 @@
package com.intellij.ide.navigationToolbar;
import com.intellij.ide.ui.UISettings;
import com.intellij.ui.Gray;
import javax.swing.border.Border;
import java.awt.*;
@@ -36,11 +37,11 @@ class NavBarBorder implements Border {
if (!myDocked) return;
if (UISettings.getInstance().SHOW_MAIN_TOOLBAR) {
g.setColor(new Color(255, 255, 255, 120));
g.drawLine(x, y, x + width, y);
//g.setColor(Gray._180);
//g.drawLine(x, y, x + width, y);
g.setColor(new Color(0, 0, 0, 50));
g.drawLine(x, y + 1, x + width, y + 1);
g.setColor(Gray._0.withAlpha(50));
g.drawLine(x, y, x + width, y);
}
}
@@ -54,7 +55,7 @@ class NavBarBorder implements Border {
return new Insets(0, 0, 0, 4);
}
return new Insets(2, 0, 0, 4);
return new Insets(1, 0, 0, 4);
}
return new Insets(1, 0, 1, 4);
@@ -297,7 +297,7 @@ public abstract class AbstractNavBarUI implements NavBarUI {
@Override
public void doPaintNavBarPanel(Graphics2D g, Rectangle r, boolean mainToolbarVisible, boolean undocked) {
g.setColor(getBackgroundColor());
if (mainToolbarVisible) {
if (!UIUtil.isUnderAquaLookAndFeel() && mainToolbarVisible) {
g.fillRect(0, 0, r.width, r.height);
}
}