Update buy/sell icons and remove unused once
|
@ -1684,7 +1684,6 @@ textfield */
|
|||
-fx-text-fill: -bs-rd-white;
|
||||
}
|
||||
|
||||
|
||||
#sell-button-big {
|
||||
-fx-background-color: -bs-sell;
|
||||
-fx-text-fill: -bs-rd-white;
|
||||
|
@ -1696,6 +1695,12 @@ textfield */
|
|||
-fx-text-fill: -bs-rd-white;
|
||||
}
|
||||
|
||||
#sell-button-big.grey-style, #buy-button-big.grey-style,
|
||||
#sell-button.grey-style, #buy-button.grey-style {
|
||||
-fx-background-color: -bs-rd-grey-light;
|
||||
-fx-text-fill: -bs-rd-font-dark-grey;
|
||||
}
|
||||
|
||||
.action-button:disabled, #sell-button:disabled, #buy-button:disabled {
|
||||
-fx-background-color: -bs-rd-grey-very-light;
|
||||
-fx-text-fill: -bs-rd-font-dark-grey;
|
||||
|
|
|
@ -29,22 +29,22 @@
|
|||
-fx-image: url("../../images/remove.png");
|
||||
}
|
||||
|
||||
#image-buy {
|
||||
-fx-image: url("../../images/buy.png");
|
||||
}
|
||||
|
||||
#image-buy-white {
|
||||
-fx-image: url("../../images/buy_white.png");
|
||||
}
|
||||
|
||||
#image-sell {
|
||||
-fx-image: url("../../images/sell.png");
|
||||
#image-buy-green {
|
||||
-fx-image: url("../../images/buy_green.png");
|
||||
}
|
||||
|
||||
#image-sell-white {
|
||||
-fx-image: url("../../images/sell_white.png");
|
||||
}
|
||||
|
||||
#image-sell-red {
|
||||
-fx-image: url("../../images/sell_red.png");
|
||||
}
|
||||
|
||||
#image-expand {
|
||||
-fx-image: url("../../images/expand.png");
|
||||
}
|
||||
|
@ -53,14 +53,6 @@
|
|||
-fx-image: url("../../images/collapse.png");
|
||||
}
|
||||
|
||||
#image-buy-large {
|
||||
-fx-image: url("../../images/buy_large.png");
|
||||
}
|
||||
|
||||
#image-sell-large {
|
||||
-fx-image: url("../../images/sell_large.png");
|
||||
}
|
||||
|
||||
/* navigation buttons */
|
||||
#image-nav-market {
|
||||
-fx-image: url("../../images/nav/market.png");
|
||||
|
|
|
@ -309,12 +309,10 @@ public abstract class MutableOfferView<M extends MutableOfferViewModel> extends
|
|||
|
||||
placeOfferButton.setId("buy-button-big");
|
||||
placeOfferButton.updateText(Res.get("createOffer.placeOfferButton", Res.get("shared.buy")));
|
||||
nextButton.setId("buy-button");
|
||||
percentagePriceDescription.setText(Res.get("shared.belowInPercent"));
|
||||
} else {
|
||||
placeOfferButton.setId("sell-button-big");
|
||||
placeOfferButton.updateText(Res.get("createOffer.placeOfferButton", Res.get("shared.sell")));
|
||||
nextButton.setId("sell-button");
|
||||
percentagePriceDescription.setText(Res.get("shared.aboveInPercent"));
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,6 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
|
|||
createOfferButton.setGraphic(iconView);
|
||||
iconView.setId(direction == OfferPayload.Direction.SELL ? "image-sell-white" : "image-buy-white");
|
||||
createOfferButton.setId(direction == OfferPayload.Direction.SELL ? "sell-button-big" : "buy-button-big");
|
||||
|
||||
setDirectionTitles();
|
||||
}
|
||||
|
||||
|
@ -861,13 +860,12 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
|
|||
iconView.setId("image-remove");
|
||||
title = Res.get("shared.remove");
|
||||
button.setId("cancel-button");
|
||||
button.setStyle("-fx-text-fill: #444;"); // does not take the font colors sometimes from the style
|
||||
button.setOnAction(e -> onRemoveOpenOffer(offer));
|
||||
} else {
|
||||
boolean isSellOffer = offer.getDirection() == OfferPayload.Direction.SELL;
|
||||
iconView.setId(isSellOffer ? "image-buy-white" : "image-sell-white");
|
||||
|
||||
button.setId(isSellOffer ? "buy-button" : "sell-button");
|
||||
button.setStyle("-fx-text-fill: white;"); // does not take the font colors sometimes from the style
|
||||
title = Res.get("offerbook.takeOffer");
|
||||
button.setTooltip(new Tooltip(Res.get("offerbook.takeOfferButton.tooltip", model.getDirectionLabelTooltip(offer))));
|
||||
button.setOnAction(e -> onTakeOffer(offer));
|
||||
|
|
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 850 B |
BIN
desktop/src/main/resources/images/buy_green.png
Normal file
After Width: | Height: | Size: 539 B |
BIN
desktop/src/main/resources/images/buy_green@2x.png
Normal file
After Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 634 B |
Before Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 2.3 KiB |
BIN
desktop/src/main/resources/images/sell_red.png
Normal file
After Width: | Height: | Size: 538 B |
BIN
desktop/src/main/resources/images/sell_red@2x.png
Normal file
After Width: | Height: | Size: 1,006 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 680 B |