IDEA-186723 toolbar separator length modified another time

This commit is contained in:
Kirill Kirichenko
2018-03-14 16:51:14 +03:00
parent 773115f8a0
commit 4147cdd345
2 changed files with 3 additions and 3 deletions
@@ -120,7 +120,7 @@ public class RunConfigurationsComboBoxAction extends ComboBoxAction implements D
};
NonOpaquePanel panel = new NonOpaquePanel(new BorderLayout());
Border border = UIUtil.isUnderDefaultMacTheme() ?
JBUI.Borders.emptyLeft(1) : JBUI.Borders.empty(0, 5, 0, 4);
JBUI.Borders.empty(0, 2) : JBUI.Borders.empty(0, 5, 0, 4);
panel.setBorder(border);
panel.add(button);
@@ -958,10 +958,10 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar, QuickAct
if (getParent() != null) {
g.setColor(UIUtil.getSeparatorColor());
if (myOrientation == SwingConstants.HORIZONTAL) {
LinePainter2D.paint((Graphics2D)g, offset, gap, offset, getParent().getSize().height - gap * 2 - JBUI.scale(2));
LinePainter2D.paint((Graphics2D)g, offset, gap, offset, getParent().getSize().height - gap * 2 - offset);
}
else {
LinePainter2D.paint((Graphics2D)g, gap, offset, getParent().getSize().width - gap * 2 - JBUI.scale(2), offset);
LinePainter2D.paint((Graphics2D)g, gap, offset, getParent().getSize().width - gap * 2 - offset, offset);
}
}
}