mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix helps button for Darcula
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user