mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow help button decoration for win10 laf
This commit is contained in:
@@ -446,7 +446,7 @@ public abstract class DialogWrapper {
|
||||
Map<Action, JButton> buttonMap = new LinkedHashMap<Action, JButton>();
|
||||
|
||||
boolean hasHelpToMoveToLeftSide = false;
|
||||
if ((UIUtil.isUnderAquaBasedLookAndFeel())
|
||||
if ((UIUtil.isUnderAquaBasedLookAndFeel() || (SystemInfo.isWindows && Registry.is("ide.intellij.laf.win10.ui")))
|
||||
&& Arrays.asList(actions).contains(getHelpAction())) {
|
||||
hasHelpToMoveToLeftSide = true;
|
||||
actions = ArrayUtil.remove(actions, getHelpAction());
|
||||
@@ -594,7 +594,7 @@ public abstract class DialogWrapper {
|
||||
panel.add(wrapper, BorderLayout.WEST);
|
||||
panel.add(southPanel, BorderLayout.EAST);
|
||||
checkBox.setBorder(JBUI.Borders.emptyRight(20));
|
||||
if (SystemInfo.isMac) {
|
||||
if (SystemInfo.isMac || (SystemInfo.isWindows && Registry.is("ide.intellij.laf.win10.ui"))) {
|
||||
JButton helpButton = null;
|
||||
for (JButton button : UIUtil.findComponentsOfType(southPanel, JButton.class)) {
|
||||
if ("help".equals(button.getClientProperty("JButton.buttonType"))) {
|
||||
|
||||
Reference in New Issue
Block a user