Skip to content

Commit 22cbfcf

Browse files
committed
Fix spacing issues for all resolutions
1 parent 6fd63e3 commit 22cbfcf

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

src/main/java/blobsaver/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void start(Stage primaryStage) throws Exception {
2020
Main.primaryStage = primaryStage;
2121
Parent root = FXMLLoader.load(getClass().getResource("blobsaver.fxml"));
2222
primaryStage.setTitle("SHSH Blob Saver " + appVersion);
23-
primaryStage.setScene(new Scene(root, 685, 580));
23+
primaryStage.setScene(new Scene(root));
2424
primaryStage.getScene().getStylesheets().add(getClass().getResource("app.css").toExternalForm());
2525
primaryStage.show();
2626
primaryStage.setResizable(false);

src/main/resources/blobsaver/blobsaver.fxml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<?import javafx.geometry.*?>
44
<?import javafx.scene.control.*?>
55
<?import javafx.scene.layout.*?>
6-
<HBox xmlns:fx="http://javafx.com/fxml/1" prefHeight="580.0" xmlns="http://javafx.com/javafx/8"
6+
<HBox xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8"
77
fx:controller="blobsaver.Controller">
8-
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="530.0" prefHeight="580.0"
8+
<VBox maxHeight="Infinity" maxWidth="-Infinity" minHeight="580.0"
99
prefWidth="500.0">
1010
<MenuBar>
11-
<Menu mnemonicParsing="false" text="test">
11+
<Menu mnemonicParsing="false" text="Options">
1212
<MenuItem mnemonicParsing="false" onAction="#checkBlobs"
1313
text="Check for valid blobs..."/>
1414
<MenuItem mnemonicParsing="false" onAction="#checkForUpdates"
@@ -152,19 +152,16 @@
152152
<Button mnemonicParsing="false" onAction="#filePickerHandler" text="..."
153153
AnchorPane.rightAnchor="0.0"/>
154154
</AnchorPane>
155-
<HBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
155+
<Region VBox.vgrow="ALWAYS"/>
156+
<Button fx:id="goButton" maxWidth="Infinity" mnemonicParsing="false" onAction="#go"
157+
prefWidth="Infinity" text="Go">
156158
<VBox.margin>
157-
<Insets left="10.0" right="10.0"/>
159+
<Insets left="10.0" bottom="10.0" right="10.0"/>
158160
</VBox.margin>
159-
<Button fx:id="goButton" maxWidth="Infinity" mnemonicParsing="false" onAction="#go"
160-
prefWidth="500.0" text="Go">
161-
<HBox.margin>
162-
<Insets bottom="10.0"/>
163-
</HBox.margin>
164-
</Button>
165-
</HBox>
161+
</Button>
166162
</VBox>
167-
<VBox fx:id="presetVBox" prefHeight="580.0" prefWidth="180.0" style="-fx-background-color: white;">
163+
<VBox fx:id="presetVBox" prefHeight="580.0" prefWidth="180.0" style="-fx-background-color: white;"
164+
HBox.hgrow="ALWAYS">
168165
<padding>
169166
<Insets left="10.0" right="10.0"/>
170167
</padding>
@@ -228,13 +225,12 @@
228225
<Insets top="10.0"/>
229226
</VBox.margin>
230227
</Button>
231-
<VBox alignment="BOTTOM_CENTER" VBox.vgrow="ALWAYS">
232-
<Button fx:id="savePresetButton" maxWidth="Infinity" mnemonicParsing="false"
233-
onAction="#savePresetHandler" prefWidth="500.0" text="Save">
234-
<VBox.margin>
235-
<Insets bottom="10.0"/>
236-
</VBox.margin>
237-
</Button>
238-
</VBox>
228+
<Region VBox.vgrow="ALWAYS"/>
229+
<Button fx:id="savePresetButton" maxWidth="Infinity" mnemonicParsing="false"
230+
onAction="#savePresetHandler" prefWidth="Infinity" text="Save">
231+
<VBox.margin>
232+
<Insets bottom="10.0"/>
233+
</VBox.margin>
234+
</Button>
239235
</VBox>
240236
</HBox>

0 commit comments

Comments
 (0)