Skip to content

Commit

Permalink
Remove all full window stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Feb 23, 2024
1 parent 3a40568 commit 806f006
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/java/net/pistonmaster/soulfire/client/gui/GUIFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import ch.jalu.injector.Injector;
import com.formdev.flatlaf.extras.FlatSVGUtils;
import com.formdev.flatlaf.util.SystemInfo;
import java.awt.CardLayout;
import java.awt.Component;
import java.awt.Dimension;
Expand Down Expand Up @@ -113,16 +112,6 @@ public static void showHints(Injector injector) {
}

public void initComponents(Injector injector) {
if (SystemInfo.isMacOS && SystemInfo.isMacFullWindowContentSupported) {
var rootPane = getRootPane();
// expand window content into window title bar and make title bar transparent
rootPane.putClientProperty("apple.awt.fullWindowContent", true);
rootPane.putClientProperty("apple.awt.transparentTitleBar", true);

// Hide window title because we want to avoid dark-mode name issues
rootPane.putClientProperty("apple.awt.windowTitleVisible", false);
}

setResizable(true);
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

Expand Down

0 comments on commit 806f006

Please sign in to comment.