Skip to content

Commit

Permalink
Add missing backgrounds in UserOptions menu pages
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Sep 9, 2024
1 parent 66a40ee commit ee6302f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class PaymentAccountsView extends View<VBox, PaymentAccountsModel, Paymen
private Subscription selectedAccountPin, noAccountsSetupPin;

public PaymentAccountsView(PaymentAccountsModel model, PaymentAccountsController controller) {
super(new VBox(20), model, controller);
super(new VBox(0), model, controller);

root.setAlignment(Pos.TOP_LEFT);
root.setPadding(new Insets(0, 40, 40, 40));
Expand Down Expand Up @@ -107,7 +107,11 @@ public String toString(Account<?, ? extends PaymentMethod<?>> object) {
deletedButton = new Button(Res.get("user.paymentAccounts.deleteAccount"));

buttonsHBox = new HBox(20, saveButton, deletedButton);
root.getChildren().addAll(headline, noAccountsVBox, largeCreateButton, selectionButtonHBox, accountData, buttonsHBox);
VBox contentBox = new VBox(20);
contentBox.getChildren().addAll(headline, noAccountsVBox, largeCreateButton, selectionButtonHBox, accountData, buttonsHBox);
contentBox.getStyleClass().add("bisq-common-bg");
root.getChildren().add(contentBox);
root.setPadding(new Insets(0, 40, 20, 40));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,24 @@ public class UserProfileView extends View<HBox, UserProfileModel, UserProfileCon
private Subscription reputationScorePin, useDeleteTooltipPin, selectedChatUserIdentityPin, isValidSelectionPin;

public UserProfileView(UserProfileModel model, UserProfileController controller) {
super(new HBox(20), model, controller);
super(new HBox(), model, controller);

root.setAlignment(Pos.TOP_LEFT);
root.setPadding(new Insets(20, 40, 40, 40));
HBox contentBox = new HBox(20);
contentBox.getStyleClass().add("bisq-common-bg");
contentBox.setPadding(new Insets(0, 40, 20, 40));
HBox.setHgrow(contentBox, Priority.ALWAYS);

root.getChildren().add(contentBox);
root.setPadding(new Insets(0, 40, 20, 40));

catHashImageView = new ImageView();
catHashImageView.setFitWidth(UserProfileModel.CAT_HASH_IMAGE_SIZE);
catHashImageView.setFitHeight(catHashImageView.getFitWidth());
root.getChildren().add(catHashImageView);
contentBox.getChildren().add(catHashImageView);

formVBox = new VBox(25);
HBox.setHgrow(formVBox, Priority.ALWAYS);
root.getChildren().add(formVBox);
contentBox.getChildren().add(formVBox);

createNewProfileButton = new Button(Res.get("user.userProfile.createNewProfile"));
createNewProfileButton.getStyleClass().addAll("outlined-button");
Expand Down

0 comments on commit ee6302f

Please sign in to comment.