mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-28 09:24:15 -04:00
Increase with of rows in market view offer book tables
This commit is contained in:
parent
30c827fe3c
commit
02485c03ee
4 changed files with 10 additions and 12 deletions
|
@ -153,7 +153,7 @@ public class BitsquareApp extends Application {
|
||||||
mainView.setPersistedFilesCorrupted(corruptedDatabaseFiles);
|
mainView.setPersistedFilesCorrupted(corruptedDatabaseFiles);
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
scene = new Scene(mainView.getRoot(), 1100, 740);
|
scene = new Scene(mainView.getRoot(), 1150, 740);
|
||||||
scene.getStylesheets().setAll(
|
scene.getStylesheets().setAll(
|
||||||
"/io/bitsquare/gui/bitsquare.css",
|
"/io/bitsquare/gui/bitsquare.css",
|
||||||
"/io/bitsquare/gui/images.css");
|
"/io/bitsquare/gui/images.css");
|
||||||
|
|
|
@ -166,14 +166,14 @@ public class MarketsChartsView extends ActivatableViewAndModel<VBox, MarketsChar
|
||||||
TableView<Offer> tableView = new TableView<>();
|
TableView<Offer> tableView = new TableView<>();
|
||||||
tableView.setMinHeight(100);
|
tableView.setMinHeight(100);
|
||||||
tableView.setMaxHeight(100);
|
tableView.setMaxHeight(100);
|
||||||
tableView.setMinWidth(490);
|
tableView.setMinWidth(530);
|
||||||
tableView.setMouseTransparent(true);
|
tableView.setMouseTransparent(true);
|
||||||
|
|
||||||
// price
|
// price
|
||||||
TableColumn<Offer, Offer> priceColumn = new TableColumn<>();
|
TableColumn<Offer, Offer> priceColumn = new TableColumn<>();
|
||||||
priceColumn.textProperty().bind(priceColumnLabel);
|
priceColumn.textProperty().bind(priceColumnLabel);
|
||||||
priceColumn.setMinWidth(120);
|
priceColumn.setMinWidth(130);
|
||||||
priceColumn.setMaxWidth(120);
|
priceColumn.setMaxWidth(130);
|
||||||
priceColumn.setSortable(false);
|
priceColumn.setSortable(false);
|
||||||
priceColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
priceColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
||||||
priceColumn.setCellFactory(
|
priceColumn.setCellFactory(
|
||||||
|
@ -197,8 +197,8 @@ public class MarketsChartsView extends ActivatableViewAndModel<VBox, MarketsChar
|
||||||
// amount
|
// amount
|
||||||
TableColumn<Offer, Offer> amountColumn = new TableColumn<>("Amount (BTC)");
|
TableColumn<Offer, Offer> amountColumn = new TableColumn<>("Amount (BTC)");
|
||||||
amountColumn.setText("Amount (BTC)");
|
amountColumn.setText("Amount (BTC)");
|
||||||
amountColumn.setMinWidth(120);
|
amountColumn.setMinWidth(130);
|
||||||
amountColumn.setMaxWidth(120);
|
amountColumn.setMaxWidth(130);
|
||||||
amountColumn.setSortable(false);
|
amountColumn.setSortable(false);
|
||||||
amountColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
amountColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
||||||
amountColumn.setCellFactory(
|
amountColumn.setCellFactory(
|
||||||
|
@ -221,8 +221,8 @@ public class MarketsChartsView extends ActivatableViewAndModel<VBox, MarketsChar
|
||||||
|
|
||||||
// volume
|
// volume
|
||||||
TableColumn<Offer, Offer> volumeColumn = new TableColumn<>();
|
TableColumn<Offer, Offer> volumeColumn = new TableColumn<>();
|
||||||
volumeColumn.setMinWidth(120);
|
volumeColumn.setMinWidth(130);
|
||||||
volumeColumn.setMaxWidth(120);
|
volumeColumn.setMaxWidth(130);
|
||||||
volumeColumn.setSortable(false);
|
volumeColumn.setSortable(false);
|
||||||
volumeColumn.textProperty().bind(volumeColumnLabel);
|
volumeColumn.textProperty().bind(volumeColumnLabel);
|
||||||
volumeColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
volumeColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
||||||
|
@ -246,7 +246,7 @@ public class MarketsChartsView extends ActivatableViewAndModel<VBox, MarketsChar
|
||||||
|
|
||||||
// payment method
|
// payment method
|
||||||
TableColumn<Offer, Offer> paymentMethodColumn = new TableColumn<>("Payment method");
|
TableColumn<Offer, Offer> paymentMethodColumn = new TableColumn<>("Payment method");
|
||||||
paymentMethodColumn.setMinWidth(120);
|
paymentMethodColumn.setMinWidth(130);
|
||||||
paymentMethodColumn.setSortable(false);
|
paymentMethodColumn.setSortable(false);
|
||||||
paymentMethodColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
paymentMethodColumn.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
|
||||||
paymentMethodColumn.setCellFactory(
|
paymentMethodColumn.setCellFactory(
|
||||||
|
|
|
@ -33,7 +33,6 @@ import javafx.collections.ObservableList;
|
||||||
import javafx.geometry.HPos;
|
import javafx.geometry.HPos;
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import javafx.geometry.Orientation;
|
import javafx.geometry.Orientation;
|
||||||
import javafx.scene.Camera;
|
|
||||||
import javafx.scene.PerspectiveCamera;
|
import javafx.scene.PerspectiveCamera;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.*;
|
import javafx.scene.control.*;
|
||||||
|
@ -506,9 +505,7 @@ public abstract class Overlay<T extends Overlay> {
|
||||||
));
|
));
|
||||||
} else if (type.animationType == AnimationType.ScaleYFromCenter) {
|
} else if (type.animationType == AnimationType.ScaleYFromCenter) {
|
||||||
gridPane.setRotationAxis(Rotate.X_AXIS);
|
gridPane.setRotationAxis(Rotate.X_AXIS);
|
||||||
Camera camera = gridPane.getScene().getCamera();
|
|
||||||
gridPane.getScene().setCamera(new PerspectiveCamera());
|
gridPane.getScene().setCamera(new PerspectiveCamera());
|
||||||
|
|
||||||
keyFrames.add(new KeyFrame(Duration.millis(0),
|
keyFrames.add(new KeyFrame(Duration.millis(0),
|
||||||
new KeyValue(gridPane.rotateProperty(), 0, interpolator),
|
new KeyValue(gridPane.rotateProperty(), 0, interpolator),
|
||||||
new KeyValue(gridPane.opacityProperty(), 1, interpolator)
|
new KeyValue(gridPane.opacityProperty(), 1, interpolator)
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class TacWindow extends Overlay<TacWindow> {
|
||||||
closeButtonText("I disagree and quit");
|
closeButtonText("I disagree and quit");
|
||||||
onAction(() -> preferences.setTacAccepted(true));
|
onAction(() -> preferences.setTacAccepted(true));
|
||||||
onClose(BitsquareApp.shutDownHandler::run);
|
onClose(BitsquareApp.shutDownHandler::run);
|
||||||
|
|
||||||
super.show();
|
super.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue