Skip to content

Commit

Permalink
Update styles for offerbook header
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Mar 3, 2024
1 parent e489abc commit 7633571
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,18 @@ protected void configTitleHBox() {

marketPrice = new Label();
HBox marketDescription = new HBox(5, channelDescription, marketPrice);
channelDescription.getStyleClass().add("offerbook-channel-market-code");
marketPrice.getStyleClass().addAll("chat-header-description", "offerbook-channel-market-price");

VBox titleAndDescription = new VBox(channelTitle, marketDescription);
channelTitle.getStyleClass().add("chat-header-title");
channelTitle.getStyleClass().add("offerbook-channel-title");

channelHeaderIcon = new Label();
HBox headerTitle = new HBox(10, channelHeaderIcon, titleAndDescription);
headerTitle.setAlignment(Pos.CENTER_LEFT);
headerTitle.setPadding(new Insets(7, 0, 0, 0));
HBox.setHgrow(headerTitle, Priority.ALWAYS);

createOfferButton = createAndGetCreateOfferButton();

titleHBox.getChildren().setAll(headerTitle, createOfferButton, headerDropdownMenu);
}

Expand Down Expand Up @@ -272,12 +273,6 @@ private DropdownMenu createAndGetSortAndFilterMarketsMenu() {
private Button createAndGetCreateOfferButton() {
Button createOfferButton = new Button(Res.get("offer.createOffer"));
createOfferButton.getStyleClass().addAll("create-offer-button", "normal-text");
createOfferButton.setMinWidth(170);

double height = 42;
createOfferButton.setMinHeight(height);
createOfferButton.setMaxHeight(height);
createOfferButton.setPrefHeight(height);
return createOfferButton;
}

Expand Down
16 changes: 15 additions & 1 deletion apps/desktop/desktop/src/main/resources/css/bisq_easy.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,20 @@
* Offerbook *
******************************************************************************/

.offerbook-channel-title {
-fx-font-size: 1.2em;
-fx-padding: 3 0 0 0;
}

.offerbook-channel-market-code {
-fx-font-family: "IBM Plex Sans Medium";
-fx-padding: -3 0 0 0;
}

.offerbook-channel-market-price {
-fx-padding: -3 0 0 0;
}

.market-selection {
-fx-text-fill: -fx-light-text-color !important;
}
Expand Down Expand Up @@ -235,7 +249,7 @@
-fx-background-radius: 8;
-fx-border-color: transparent;
-fx-border-radius: 8;
-fx-padding: 2 4 4 4;
-fx-padding: 4 50 4 50;
-fx-cursor: hand;
}

Expand Down

0 comments on commit 7633571

Please sign in to comment.