Browse Source

reduce tx diagram height to fit min resolution of 768px

terminal
Craig Raw 4 years ago
parent
commit
1ad6da86b1
  1. 2
      src/main/java/com/sparrowwallet/sparrow/AppServices.java
  2. 2
      src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java
  3. 2
      src/main/resources/com/sparrowwallet/sparrow/wallet/send.css
  4. 2
      src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml

2
src/main/java/com/sparrowwallet/sparrow/AppServices.java

@ -265,7 +265,7 @@ public class AppServices {
stage.setTitle("Sparrow"); stage.setTitle("Sparrow");
stage.setMinWidth(650); stage.setMinWidth(650);
stage.setMinHeight(org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.OSX ? 750 : 780); stage.setMinHeight(org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.OSX ? 750 : 768);
stage.setScene(scene); stage.setScene(scene);
stage.getIcons().add(new Image(MainApp.class.getResourceAsStream("/image/sparrow.png"))); stage.getIcons().add(new Image(MainApp.class.getResourceAsStream("/image/sparrow.png")));

2
src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java

@ -32,7 +32,7 @@ import java.util.stream.Collectors;
public class TransactionDiagram extends GridPane { public class TransactionDiagram extends GridPane {
private static final int MAX_UTXOS = 7; private static final int MAX_UTXOS = 7;
private static final int MAX_PAYMENTS = 5; private static final int MAX_PAYMENTS = 5;
private static final double DIAGRAM_HEIGHT = 230.0; private static final double DIAGRAM_HEIGHT = 215.0;
private static final int TOOLTIP_SHOW_DELAY = 50; private static final int TOOLTIP_SHOW_DELAY = 50;
private WalletTransaction walletTx; private WalletTransaction walletTx;

2
src/main/resources/com/sparrowwallet/sparrow/wallet/send.css

@ -66,7 +66,7 @@
} }
#transactionDiagram { #transactionDiagram {
-fx-min-height: 230px; -fx-min-height: 215px;
} }
#transactionDiagram .boundary { #transactionDiagram .boundary {

2
src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml

@ -127,7 +127,7 @@
</AnchorPane> </AnchorPane>
</GridPane> </GridPane>
<AnchorPane> <AnchorPane>
<TransactionDiagram fx:id="transactionDiagram" maxWidth="700" maxHeight="230" AnchorPane.leftAnchor="100" /> <TransactionDiagram fx:id="transactionDiagram" maxWidth="700" maxHeight="215" AnchorPane.leftAnchor="100" />
</AnchorPane> </AnchorPane>
</VBox> </VBox>
</center> </center>

Loading…
Cancel
Save