mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-186723 toolbar separator length modified another time
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user