make extra info text areas consistent

This commit is contained in:
woodser 2025-05-24 08:19:03 -04:00
parent 33c523190d
commit 3ff266eeeb
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
3 changed files with 10 additions and 2 deletions

View file

@ -2567,13 +2567,20 @@ textfield */
-fx-text-fill: -fx-dark-text-color !important;
}
.grid-pane .text-area {
.grid-pane .text-area,
.flat-text-area-with-border {
-fx-background-radius: 8;
-fx-border-radius: 8;
-fx-background-color: transparent !important;
-fx-font-size: 1.077em;
-fx-font-family: "IBM Plex Sans";
-fx-font-weight: normal;
-fx-text-fill: -bs-rd-font-dark-gray !important;
-fx-border-width: 1;
-fx-border-color: -bs-color-border-form-field !important;
}
.grid-pane .text-area {
-fx-max-height: 150 !important;
}

View file

@ -370,7 +370,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
extraInfoTextArea.setVisible(false);
extraInfoTextArea.setManaged(false);
extraInfoTextArea.setText(offer.getCombinedExtraInfo().trim());
extraInfoTextArea.getStyleClass().add("text-area");
extraInfoTextArea.getStyleClass().addAll("text-area", "flat-text-area-with-border");
extraInfoTextArea.setWrapText(true);
extraInfoTextArea.setMaxHeight(300);
extraInfoTextArea.setEditable(false);

View file

@ -56,6 +56,7 @@ public class GenericMessageWindow extends Overlay<GenericMessageWindow> {
}
checkNotNull(message, "message must not be null");
TextArea textArea = addTextArea(gridPane, ++rowIndex, "", 10);
textArea.getStyleClass().add("flat-text-area-with-border");
textArea.setText(message);
textArea.setEditable(false);
textArea.setWrapText(true);