Browse Source

Fixed incorrect inactive close icon on windows.

pull/127/head
weisj 5 years ago
parent
commit
bc20a1e536
  1. 3
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

3
windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

@ -430,7 +430,7 @@ public class WindowsTitlePane extends CustomTitlePane {
restoreIcon = new ToggleIcon(UIManager.getIcon("Windows.TitlePane.restore.icon"), restoreIcon = new ToggleIcon(UIManager.getIcon("Windows.TitlePane.restore.icon"),
UIManager.getIcon("Windows.TitlePane.restoreInactive.icon")); UIManager.getIcon("Windows.TitlePane.restoreInactive.icon"));
closeIcon = new ToggleIcon(UIManager.getIcon("Windows.TitlePane.close.icon"), closeIcon = new ToggleIcon(UIManager.getIcon("Windows.TitlePane.close.icon"),
UIManager.getIcon("Windows.TitlePane.close.icon")); UIManager.getIcon("Windows.TitlePane.closeInactive.icon"));
} }
private void createButtons() { private void createButtons() {
@ -456,6 +456,7 @@ public class WindowsTitlePane extends CustomTitlePane {
if (getWindowDecorationStyle() == JRootPane.FRAME) { if (getWindowDecorationStyle() == JRootPane.FRAME) {
minimizeIcon.setActive(active); minimizeIcon.setActive(active);
maximizeIcon.setActive(active); maximizeIcon.setActive(active);
closeIcon.setActive(active);
restoreIcon.setActive(active); restoreIcon.setActive(active);
setButtonActive(minimizeButton, active); setButtonActive(minimizeButton, active);
setButtonActive(maximizeToggleButton, active); setButtonActive(maximizeToggleButton, active);

Loading…
Cancel
Save