mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make navbar brighter on mac for new icons
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user