Improve layout for pending trades

This commit is contained in:
Christoph Atteneder 2022-02-09 10:51:39 +01:00
parent 9831d19849
commit 0017ccbd96
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
3 changed files with 6 additions and 1 deletions

View File

@ -609,6 +609,10 @@ tree-table-view:focused {
-fx-font-size: 0.769em; -fx-font-size: 0.769em;
} }
.medium-text {
-fx-font-size: 0.846em;
}
.normal-text { .normal-text {
-fx-font-size: 0.923em; -fx-font-size: 0.923em;
} }

View File

@ -305,7 +305,7 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
selectedSubView = model.dataModel.tradeManager.isBuyer(model.dataModel.getOffer()) ? selectedSubView = model.dataModel.tradeManager.isBuyer(model.dataModel.getOffer()) ?
new BuyerSubView(model) : new SellerSubView(model); new BuyerSubView(model) : new SellerSubView(model);
selectedSubView.setMinHeight(440); selectedSubView.setMinHeight(460);
VBox.setVgrow(selectedSubView, Priority.ALWAYS); VBox.setVgrow(selectedSubView, Priority.ALWAYS);
if (root.getChildren().size() == 2) if (root.getChildren().size() == 2)
root.getChildren().add(selectedSubView); root.getChildren().add(selectedSubView);

View File

@ -108,6 +108,7 @@ public abstract class TradeSubView extends HBox {
SimpleMarkdownLabel label = addSimpleMarkdownLabel(leftGridPane, ++leftGridPaneRowIndex); SimpleMarkdownLabel label = addSimpleMarkdownLabel(leftGridPane, ++leftGridPaneRowIndex);
AutoTooltipButton button = (AutoTooltipButton) addButtonAfterGroup(leftGridPane, ++leftGridPaneRowIndex, ""); AutoTooltipButton button = (AutoTooltipButton) addButtonAfterGroup(leftGridPane, ++leftGridPaneRowIndex, "");
SimpleMarkdownLabel footerLabel = addSimpleMarkdownLabel(leftGridPane, ++leftGridPaneRowIndex, Res.get("portfolio.pending.stillNotResolved"), 10); SimpleMarkdownLabel footerLabel = addSimpleMarkdownLabel(leftGridPane, ++leftGridPaneRowIndex, Res.get("portfolio.pending.stillNotResolved"), 10);
footerLabel.getStyleClass().add("medium-text");
tradeStepInfo = new TradeStepInfo(titledGroupBg, label, button, footerLabel); tradeStepInfo = new TradeStepInfo(titledGroupBg, label, button, footerLabel);
} }