fix helps button for Darcula

This commit is contained in:
Konstantin Bulenkov
2012-09-13 13:12:19 +04:00
parent 590061bff5
commit 81015c03b5
2 changed files with 7 additions and 3 deletions
@@ -118,7 +118,9 @@ public abstract class AbstractWizard<T extends Step> extends DialogWrapper {
panel.add(buttonPanel, BorderLayout.EAST);
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
myHelpButton.putClientProperty("JButton.buttonType", "help");
if (!UIUtil.isUnderDarcula()) {
myHelpButton.putClientProperty("JButton.buttonType", "help");
}
if (UIUtil.isUnderAquaLookAndFeel()) {
myHelpButton.setText("");
}
@@ -462,8 +462,10 @@ public abstract class DialogWrapper {
if (hasHelpToMoveToLeftSide) {
JButton helpButton = new JButton(getHelpAction());
helpButton.putClientProperty("JButton.buttonType", "help");
helpButton.setText("");
if (!UIUtil.isUnderDarcula()) {
helpButton.putClientProperty("JButton.buttonType", "help");
helpButton.setText("");
}
helpButton.setMargin(insets);
helpButton.setToolTipText(ActionsBundle.actionDescription("HelpTopics"));
panel.add(helpButton, BorderLayout.WEST);