diff --git a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java index 3c6e4d073564..0f4033a0458e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionToolbarImpl.java @@ -251,7 +251,7 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar { } if (mySecondaryActions.getChildrenCount() > 0) { - mySecondaryActionsButton = new SecondaryButton(mySecondaryActions, myPresentationFactory.getPresentation(mySecondaryActions), myPlace, getMinimumButtonSize()); + mySecondaryActionsButton = new ActionButton(mySecondaryActions, myPresentationFactory.getPresentation(mySecondaryActions), myPlace, getMinimumButtonSize()); mySecondaryActionsButton.setNoIconsInPopup(true); add(mySecondaryActionsButton); } @@ -678,7 +678,8 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar { public Dimension getMinimumSize() { if (myLayoutPolicy == AUTO_LAYOUT_POLICY) { - return new Dimension(myAutoPopupIcon.getIconWidth(), myMinimumButtonSize.height); + final Insets i = getInsets(); + return new Dimension(myAutoPopupIcon.getIconWidth() + i.left + i.right, myMinimumButtonSize.height + i.top + i.bottom); } else { return super.getMinimumSize(); @@ -1088,26 +1089,6 @@ public class ActionToolbarImpl extends JPanel implements ActionToolbar { mySecondaryActions.getTemplatePresentation().setDescription(secondaryActionsTooltip); } - private static class SecondaryButton extends ActionButton { - private SecondaryButton(AnAction action, Presentation presentation, String place, @NotNull Dimension minimumSize) { - super(action, presentation, place, minimumSize); - } - - @Override - protected void paintButtonLook(Graphics g) { - final Color bright = new Color(255, 255, 255, 200); - - g.setColor(bright); - int padding = 3; - g.drawLine(0, padding, 0, getHeight() - padding - 1); - final Color dark = new Color(64, 64, 64, 110); - g.setColor(dark); - g.drawLine(1, padding, 1, getHeight() - padding - 1); - - super.paintButtonLook(g); - } - } - public List getTargets(boolean onlyVisible, boolean originalProvider) { ArrayList result = new ArrayList(); diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitLegendPanel.form b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitLegendPanel.form index 3f8dc95fad2d..e94a1015b243 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitLegendPanel.form +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitLegendPanel.form @@ -1,14 +1,14 @@
- + - + - + @@ -43,63 +43,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -107,76 +53,16 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -191,8 +77,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleChangeListBrowser.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleChangeListBrowser.java index 4acb35414d3a..a29aeb287d17 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleChangeListBrowser.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/MultipleChangeListBrowser.java @@ -229,11 +229,7 @@ public class MultipleChangeListBrowser extends ChangesBrowser { public ChangeListChooser(List lists) { super(new BorderLayout(4, 2)); - myChooser = new JComboBox() { - public Dimension getMinimumSize() { - return new Dimension(0, 0); - } - }; + myChooser = new JComboBox(); myChooser.setRenderer(new HtmlListCellRenderer(myChooser.getRenderer()) { @Override protected void doCustomize(JList list, LocalChangeList value, int index, boolean selected, boolean hasFocus) {