diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java index b7b44bdf..49bd27e9 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java +++ b/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"), UIManager.getIcon("Windows.TitlePane.restoreInactive.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() { @@ -456,6 +456,7 @@ public class WindowsTitlePane extends CustomTitlePane { if (getWindowDecorationStyle() == JRootPane.FRAME) { minimizeIcon.setActive(active); maximizeIcon.setActive(active); + closeIcon.setActive(active); restoreIcon.setActive(active); setButtonActive(minimizeButton, active); setButtonActive(maximizeToggleButton, active);