Update buy/sell icons and remove unused once

This commit is contained in:
Christoph Atteneder 2018-11-28 12:05:56 +01:00
parent e09520f4a0
commit fb2aab8b25
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
20 changed files with 13 additions and 20 deletions

View file

@ -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;

View file

@ -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");

View file

@ -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"));
}

View file

@ -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));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,006 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 B

After

Width:  |  Height:  |  Size: 680 B