Browse Source

Increase padding from frame edge to icon. [windows]

pull/139/head
weisj 5 years ago
parent
commit
c9a274f5ca
  1. 4
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

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

@ -709,8 +709,8 @@ public class WindowsTitlePane extends CustomTitlePane {
.getIconWidth()) .getIconWidth())
: ICON_WIDTH; : ICON_WIDTH;
windowButtonWidth = Math.min(ICON_WIDTH, windowButtonWidth); windowButtonWidth = Math.min(ICON_WIDTH, windowButtonWidth);
windowIconButton.setBounds(start + PAD / 2, y, windowButtonWidth, height); windowIconButton.setBounds(start + PAD, y, windowButtonWidth, height);
start += windowButtonWidth + PAD; start += windowButtonWidth + 2 * PAD;
left = start; left = start;
} }

Loading…
Cancel
Save