minor ui improvements
This commit is contained in:
parent
a3a7d415c7
commit
c70786cdf4
@ -1131,7 +1131,7 @@ public class MainWindowController {
|
||||
BufferedImage originalImage = ImageIO.read(new File(coverPath)); //load cover
|
||||
int type = originalImage.getType() == 0 ? BufferedImage.TYPE_INT_ARGB : originalImage.getType();
|
||||
BufferedImage resizeImagePNG = resizeImage(originalImage, type, 400, 600);
|
||||
coverPath = pictureCache + "/" + coverName;
|
||||
coverPath = pictureCache + "/" + coverName; // TODO test path
|
||||
ImageIO.write(resizeImagePNG, "png", new File(coverPath)); //save image to pictureCache
|
||||
} catch (IOException e) {
|
||||
LOGGER.error("Ops something went wrong! Error while resizing cover.", e);
|
||||
|
@ -88,10 +88,7 @@ public class JFXEditGameDialog {
|
||||
StackPane stackPane = new StackPane();
|
||||
stackPane.autosize();
|
||||
JFXDialog dialog = new JFXDialog(stackPane, content, JFXDialog.DialogTransition.LEFT, true);
|
||||
|
||||
Label placeholder = new Label();
|
||||
placeholder.setPrefSize(15, 10);
|
||||
|
||||
|
||||
TextField gameTitleTF = new TextField();
|
||||
gameTitleTF.setPromptText("game tile");
|
||||
TextField gameTitleIDTF = new TextField();
|
||||
@ -207,7 +204,7 @@ public class JFXEditGameDialog {
|
||||
|
||||
content.setHeading(new Text(headingText));
|
||||
content.setBody(vbox);
|
||||
content.setActions(cancelBtn, placeholder, okayBtn);
|
||||
content.setActions(cancelBtn, okayBtn);
|
||||
content.setPrefSize(dialogWidth, dialogHeight);
|
||||
pane.getChildren().add(stackPane);
|
||||
AnchorPane.setTopAnchor(stackPane, (pane.getHeight()-content.getPrefHeight())/2);
|
||||
|
@ -28,7 +28,6 @@ import com.jfoenix.controls.JFXDialogLayout;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.scene.layout.StackPane;
|
||||
@ -93,9 +92,7 @@ public class JFXOkayCancelDialog {
|
||||
cancelBtn.setButtonType(com.jfoenix.controls.JFXButton.ButtonType.RAISED);
|
||||
cancelBtn.setPrefHeight(32);
|
||||
cancelBtn.setStyle(dialogBtnStyle);
|
||||
Label placeholder = new Label();
|
||||
placeholder.setPrefSize(15, 10);
|
||||
content.setActions(cancelBtn, placeholder, okayBtn);
|
||||
content.setActions(cancelBtn, okayBtn);
|
||||
content.setPrefSize(dialogWidth, dialogHeight);
|
||||
pane.getChildren().add(stackPane);
|
||||
AnchorPane.setTopAnchor(stackPane, (pane.getHeight()-content.getPrefHeight())/2);
|
||||
|
Loading…
Reference in New Issue
Block a user