From 1a5bd647726bcb64ce3624a00929834fd4d0a965 Mon Sep 17 00:00:00 2001 From: weisj Date: Wed, 15 Apr 2020 11:56:43 +0200 Subject: [PATCH] Fixed incorrect maximized inactive icon (windows). --- .../weisj/darklaf/platform/windows/ui/WindowsTitlePane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3629f033..7c6a9e2e 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 @@ -433,7 +433,7 @@ public class WindowsTitlePane extends CustomTitlePane { closeIcon.setActive(active); titleLabel.setForeground(active ? activeForeground : inactiveForeground); minimizeIcon.setActive(active); - maximizeIcon.setActive(isResizable()); + maximizeIcon.setActive(isResizable() && active); closeIcon.setActive(active); restoreIcon.setActive(isResizable()); setButtonActive(minimizeButton, active);