mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Extract inline styles from create offer view
This commit is contained in:
parent
5de928e65d
commit
bb3572d112
2 changed files with 25 additions and 6 deletions
|
@ -602,6 +602,22 @@ textfield */
|
|||
-fx-background-color: -bs-content-bg-grey;
|
||||
}
|
||||
|
||||
.toggle-button-active {
|
||||
-fx-background-color: -bs-blue-transparent;
|
||||
}
|
||||
|
||||
.toggle-button-inactive {
|
||||
-fx-background-color: -bs-very-light-grey;
|
||||
}
|
||||
|
||||
.percentage-label {
|
||||
-fx-alignment: center;
|
||||
}
|
||||
|
||||
.offer-separator {
|
||||
-fx-background: -bs-grey;
|
||||
}
|
||||
|
||||
/* Account setup */
|
||||
#wizard-title-deactivated {
|
||||
-fx-font-weight: bold;
|
||||
|
|
|
@ -1118,10 +1118,13 @@ public class CreateOfferView extends ActivatableViewAndModel<AnchorPane, CreateO
|
|||
fixedPriceButton.setMouseTransparent(fixedPriceSelected);
|
||||
useMarketBasedPriceButton.setMouseTransparent(!fixedPriceSelected);
|
||||
|
||||
fixedPriceButton.setStyle(fixedPriceSelected ?
|
||||
"-fx-background-color: -bs-blue-transparent" : "-fx-background-color: -bs-very-light-grey");
|
||||
useMarketBasedPriceButton.setStyle(!fixedPriceSelected ?
|
||||
"-fx-background-color: -bs-blue-transparent" : "-fx-background-color: -bs-very-light-grey");
|
||||
fixedPriceButton.getStyleClass().removeAll("toggle-button-active","toggle-button-inactive");
|
||||
useMarketBasedPriceButton.getStyleClass().removeAll("toggle-button-active","toggle-button-inactive");
|
||||
|
||||
fixedPriceButton.getStyleClass().add(fixedPriceSelected ?
|
||||
"toggle-button-active" : "toggle-button-inactive");
|
||||
useMarketBasedPriceButton.getStyleClass().add(!fixedPriceSelected ?
|
||||
"toggle-button-active" : "toggle-button-inactive");
|
||||
|
||||
if (fixedPriceSelected) {
|
||||
if (firstRowHBox.getChildren().contains(percentagePriceBox))
|
||||
|
@ -1160,7 +1163,7 @@ public class CreateOfferView extends ActivatableViewAndModel<AnchorPane, CreateO
|
|||
|
||||
marketBasedPriceTextField.setPromptText(Res.get("shared.enterPercentageValue"));
|
||||
marketBasedPriceLabel.setText("%");
|
||||
marketBasedPriceLabel.setStyle("-fx-alignment: center;");
|
||||
marketBasedPriceLabel.getStyleClass().add("percentage-label");
|
||||
|
||||
Tuple3<HBox, InputTextField, Label> amountValueCurrencyBoxTuple = getEditableValueCurrencyBox(
|
||||
Res.get("createOffer.amount.prompt"));
|
||||
|
@ -1221,7 +1224,7 @@ public class CreateOfferView extends ActivatableViewAndModel<AnchorPane, CreateO
|
|||
addPayInfoEntry(infoGridPane, i++, Res.get("createOffer.fundsBox.networkFee"), model.getTxFee());
|
||||
Separator separator = new Separator();
|
||||
separator.setOrientation(Orientation.HORIZONTAL);
|
||||
separator.setStyle("-fx-background: #666;");
|
||||
separator.getStyleClass().add("offer-separator");
|
||||
GridPane.setConstraints(separator, 1, i++);
|
||||
infoGridPane.getChildren().add(separator);
|
||||
addPayInfoEntry(infoGridPane, i, Res.getWithCol("shared.total"), model.getTotalToPayInfo());
|
||||
|
|
Loading…
Add table
Reference in a new issue