diff --git a/src/main/java/io/bitsquare/BitSquare.java b/src/main/java/io/bitsquare/BitSquare.java index c3c807cd9c..cbfd38ea9a 100644 --- a/src/main/java/io/bitsquare/BitSquare.java +++ b/src/main/java/io/bitsquare/BitSquare.java @@ -127,7 +127,7 @@ public class BitSquare extends Application { try { final Parent view = loader.load(); - final Scene scene = new Scene(view, 1000, 750); + final Scene scene = new Scene(view, 1000, 800); scene.getStylesheets().setAll(getClass().getResource("/io/bitsquare/gui/bitsquare.css").toExternalForm(), getClass().getResource("/io/bitsquare/gui/images.css").toExternalForm()); @@ -136,12 +136,12 @@ public class BitSquare extends Application { primaryStage.setScene(scene); // TODO resizing not fully supported yet - /* - primaryStage.setMinWidth(750); - primaryStage.setMinHeight(500);*/ - primaryStage.setMinWidth(1000); - primaryStage.setMinHeight(750); + primaryStage.setMinWidth(75); + primaryStage.setMinHeight(50); + + /* primaryStage.setMinWidth(1000); + primaryStage.setMinHeight(750);*/ Profiler.initScene(primaryStage.getScene()); diff --git a/src/main/java/io/bitsquare/bank/BankAccountType.java b/src/main/java/io/bitsquare/bank/BankAccountType.java index c25d8b8058..9e92f26193 100644 --- a/src/main/java/io/bitsquare/bank/BankAccountType.java +++ b/src/main/java/io/bitsquare/bank/BankAccountType.java @@ -26,8 +26,7 @@ public enum BankAccountType { INTERNATIONAL("primary ID", "secondary ID"), OK_PAY("primary ID", "secondary ID"), NET_TELLER("primary ID", "secondary ID"), - PERFECT_MONEY("primary ID", "secondary ID"), - OTHER("primary ID", "secondary ID"); + PERFECT_MONEY("primary ID", "secondary ID"); private final String primaryId; private final String secondaryId; diff --git a/src/main/java/io/bitsquare/btc/WalletFacade.java b/src/main/java/io/bitsquare/btc/WalletFacade.java index 2380fb1250..2083e6e9b8 100644 --- a/src/main/java/io/bitsquare/btc/WalletFacade.java +++ b/src/main/java/io/bitsquare/btc/WalletFacade.java @@ -612,7 +612,6 @@ public class WalletFacade { public String sendFunds(String withdrawFromAddress, String withdrawToAddress, - String changeAddress, Coin amount, FutureCallback callback) throws AddressFormatException, InsufficientMoneyException, IllegalArgumentException { diff --git a/src/main/java/io/bitsquare/gui/components/InfoDisplay.java b/src/main/java/io/bitsquare/gui/components/InfoDisplay.java index af82b5344d..0bf661387b 100644 --- a/src/main/java/io/bitsquare/gui/components/InfoDisplay.java +++ b/src/main/java/io/bitsquare/gui/components/InfoDisplay.java @@ -96,19 +96,17 @@ public class InfoDisplay extends Parent { textFlow.getChildren().addAll(testLabel); testLabel.widthProperty().addListener((ov, o, n) -> { - if ((double) n > textFlow.getWidth()) { - link.setText(BSResources.get("shared.readMore")); - useReadMore = true; - } - else { - link.setText(BSResources.get("shared.openHelp")); - } + useReadMore = (double) n > textFlow.getWidth(); + link.setText(BSResources.get(useReadMore ? "shared.readMore" : "shared.openHelp")); Platform.runLater(() -> textFlow.getChildren().setAll(label, link)); }); // update the width when the window gets resized - ChangeListener listener = (ov2, oldValue2, windowWidth) -> - label.setPrefWidth((double) windowWidth - localToScene(0, 0).getX() - 35); + ChangeListener listener = (ov2, oldValue2, windowWidth) -> { + if (label.prefWidthProperty().isBound()) + label.prefWidthProperty().unbind(); + label.setPrefWidth((double) windowWidth - localToScene(0, 0).getX() - 35); + }; // when clicking "Read more..." we expand and change the link to the Help @@ -120,12 +118,14 @@ public class InfoDisplay extends Parent { label.setWrapText(true); link.setText(BSResources.get("shared.openHelp")); getScene().getWindow().widthProperty().removeListener(listener); - label.prefWidthProperty().unbind(); + if (label.prefWidthProperty().isBound()) + label.prefWidthProperty().unbind(); label.prefWidthProperty().bind(textFlow.widthProperty()); link.setVisited(false); // focus border is a bit confusing here so we remove it link.setStyle("-fx-focus-color: transparent;"); link.setOnAction(onAction.get()); + getParent().layout(); } else { onAction.get().handle(actionEvent); @@ -154,7 +154,13 @@ public class InfoDisplay extends Parent { public void setText(String text) { this.text.set(text); - layout(); + if (getScene() != null) { + Platform.runLater(() -> { + label.setVisible(true); + label.prefWidthProperty().unbind(); + label.setPrefWidth(getScene().getWindow().getWidth() - localToScene(0, 0).getX() - 35); + }); + } } public void setGridPane(GridPane gridPane) { diff --git a/src/main/java/io/bitsquare/gui/components/Popups.java b/src/main/java/io/bitsquare/gui/components/Popups.java index 0a985c7a28..b0e7c20314 100644 --- a/src/main/java/io/bitsquare/gui/components/Popups.java +++ b/src/main/java/io/bitsquare/gui/components/Popups.java @@ -34,7 +34,6 @@ import javafx.event.ActionEvent; import org.controlsfx.control.action.AbstractAction; import org.controlsfx.control.action.Action; import org.controlsfx.dialog.Dialog; -import org.controlsfx.dialog.DialogStyle; import org.controlsfx.dialog.Dialogs; import org.slf4j.Logger; @@ -86,7 +85,6 @@ public class Popups { .message(message) .masthead(masthead) .actions(actions) - .style(DialogStyle.UNDECORATED) .showInformation(); } diff --git a/src/main/java/io/bitsquare/gui/components/processbar/ProcessStepBarSkin.java b/src/main/java/io/bitsquare/gui/components/processbar/ProcessStepBarSkin.java index bd8df89596..61a14d05dd 100644 --- a/src/main/java/io/bitsquare/gui/components/processbar/ProcessStepBarSkin.java +++ b/src/main/java/io/bitsquare/gui/components/processbar/ProcessStepBarSkin.java @@ -173,10 +173,10 @@ class ProcessStepBarSkin extends BehaviorSkinBase, Behavior public void past() { log.debug("deSelect " + processStepItem.getLabel()); - BorderStroke borderStroke = new BorderStroke(Colors.GREEN, BorderStrokeStyle.SOLID, null, + BorderStroke borderStroke = new BorderStroke(Color.valueOf("#444444"), BorderStrokeStyle.SOLID, null, new BorderWidths(borderWidth, borderWidth, borderWidth, borderWidth), Insets.EMPTY); this.setBorder(new Border(borderStroke)); - setTextFill(Colors.GREEN); + setTextFill(Color.valueOf("#444444")); } public double getArrowWidth() { diff --git a/src/main/java/io/bitsquare/gui/main/MainViewCB.java b/src/main/java/io/bitsquare/gui/main/MainViewCB.java index c0c84949a8..bc361d666d 100644 --- a/src/main/java/io/bitsquare/gui/main/MainViewCB.java +++ b/src/main/java/io/bitsquare/gui/main/MainViewCB.java @@ -228,8 +228,8 @@ public class MainViewCB extends ViewCB { presentationModel.numPendingTrades.addListener((ov, oldValue, newValue) -> { - if ((int) newValue > (int) oldValue) - applyPendingTradesInfoIcon((int) newValue); + //if ((int) newValue > (int) oldValue) + applyPendingTradesInfoIcon((int) newValue); }); applyPendingTradesInfoIcon(presentationModel.numPendingTrades.get()); navigation.navigateToLastStoredItem(); diff --git a/src/main/java/io/bitsquare/gui/main/account/content/registration/RegistrationView.fxml b/src/main/java/io/bitsquare/gui/main/account/content/registration/RegistrationView.fxml index a9a8cfebc4..9994853ef4 100644 --- a/src/main/java/io/bitsquare/gui/main/account/content/registration/RegistrationView.fxml +++ b/src/main/java/io/bitsquare/gui/main/account/content/registration/RegistrationView.fxml @@ -39,8 +39,7 @@ + GridPane.rowIndex="0" mouseTransparent="true" editable="false" focusTraversable="false"> diff --git a/src/main/java/io/bitsquare/gui/main/funds/FundsView.fxml b/src/main/java/io/bitsquare/gui/main/funds/FundsView.fxml index 0706fa4cce..3f58bc1db7 100644 --- a/src/main/java/io/bitsquare/gui/main/funds/FundsView.fxml +++ b/src/main/java/io/bitsquare/gui/main/funds/FundsView.fxml @@ -23,7 +23,7 @@ AnchorPane.topAnchor="0.0" xmlns:fx="http://javafx.com/fxml"> - - + + \ No newline at end of file diff --git a/src/main/java/io/bitsquare/gui/main/funds/withdrawal/WithdrawalView.fxml b/src/main/java/io/bitsquare/gui/main/funds/withdrawal/WithdrawalView.fxml index d9a39ccd7d..0dc3ce78e6 100644 --- a/src/main/java/io/bitsquare/gui/main/funds/withdrawal/WithdrawalView.fxml +++ b/src/main/java/io/bitsquare/gui/main/funds/withdrawal/WithdrawalView.fxml @@ -53,13 +53,10 @@ -