Skip to content

Commit d8f275a

Browse files
committed
UI tweaks
1 parent da7ad61 commit d8f275a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

launcher-gui/src/main/java/org/taumc/launcher/gui/components/TauLauncherFrame.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ protected Dimension getDefaultDimensions() {
3434
private void loadWindowBounds() {
3535
Preferences prefs = windowBounds();
3636
var defaultSize = getDefaultDimensions();
37-
int x = prefs.getInt(PREFIX + windowBoundsKey + ".x", Integer.MIN_VALUE);
38-
int y = prefs.getInt(PREFIX + windowBoundsKey + ".y", Integer.MIN_VALUE);
37+
int x = Integer.MIN_VALUE; //prefs.getInt(PREFIX + windowBoundsKey + ".x", Integer.MIN_VALUE);
38+
int y = Integer.MIN_VALUE; //prefs.getInt(PREFIX + windowBoundsKey + ".y", Integer.MIN_VALUE);
3939
int w = prefs.getInt(PREFIX + windowBoundsKey + ".w", defaultSize.width);
4040
int h = prefs.getInt(PREFIX + windowBoundsKey + ".h", defaultSize.height);
4141

launcher-gui/src/main/java/org/taumc/launcher/gui/screens/home/HomeView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,18 @@ public void mousePressed(MouseEvent e) {
110110

111111
// Panel to go above split pane
112112
JButton addInstanceButton = new JButton("Add Instance");
113+
addInstanceButton.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_BORDERLESS);
113114
addInstanceButton.addActionListener(e -> this.showCreateInstanceDialog());
114115
JButton importButton = new JButton("Import Instance");
116+
importButton.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_BORDERLESS);
115117
importButton.addActionListener(e -> this.showImportInstanceDialog());
116118
JPanel topPanel = new JPanel();
117119
topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
118120
topPanel.add(addInstanceButton);
119121
topPanel.add(importButton);
120122

121123
JButton settingsButton = new JButton("Settings");
124+
settingsButton.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_BORDERLESS);
122125
settingsButton.addActionListener(e -> new GlobalSettingsView());
123126

124127
//accountComboBox.setMaximumSize(new Dimension(50, accountComboBox.getPreferredSize().height));

0 commit comments

Comments
 (0)