implement illegal commodity visualisation
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<?import ru.trader.view.support.cells.OfferListCell?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import ru.trader.view.support.cells.OfferDecoratedListCell?>
|
||||
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="ru.trader.controllers.ItemDescController"
|
||||
spacing="4" >
|
||||
@@ -12,10 +12,10 @@
|
||||
|
||||
<Label text="%itemDesc.sellers" VBox.margin="$vbox_margin"/>
|
||||
<ListView fx:id="seller" maxHeight="200.0">
|
||||
<cellFactory><OfferListCell/></cellFactory>
|
||||
<cellFactory><OfferDecoratedListCell/></cellFactory>
|
||||
</ListView>
|
||||
<Label text="%itemDesc.buyers" VBox.margin="$vbox_margin"/>
|
||||
<ListView fx:id="buyer" maxHeight="200.0">
|
||||
<cellFactory><OfferListCell/></cellFactory>
|
||||
<cellFactory><OfferDecoratedListCell/></cellFactory>
|
||||
</ListView>
|
||||
</VBox>
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
<panes>
|
||||
<TitledPane fx:id="paneSells" animated="false" text="%offers.pane.sell">
|
||||
<TableView fx:id="tblSell" editable="true">
|
||||
<rowFactory><OfferDecoratedRow /></rowFactory>
|
||||
<columns>
|
||||
<TableColumn minWidth="230.0" text="%market.item.name">
|
||||
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
||||
@@ -115,6 +116,7 @@
|
||||
</TitledPane>
|
||||
<TitledPane animated="false" text="%offers.pane.buy">
|
||||
<TableView fx:id="tblBuy" editable="true">
|
||||
<rowFactory><OfferDecoratedRow /></rowFactory>
|
||||
<columns>
|
||||
<TableColumn minWidth="230.0" text="%market.item.name">
|
||||
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
.illegal_item {
|
||||
-fx-base: red;
|
||||
}
|
||||
|
||||
.illegal_item .bad .diff {
|
||||
-fx-fill: white;
|
||||
}
|
||||
|
||||
.good .diff {
|
||||
-fx-fill: green;
|
||||
-fx-font-weight: bold;
|
||||
@@ -204,6 +212,10 @@ HBox.fields-group hbox-margin{
|
||||
-fx-faint-focus-color: #bb6b0022;
|
||||
}
|
||||
|
||||
#helper .illegal_item {
|
||||
-fx-base: darkred;
|
||||
}
|
||||
|
||||
.text-small, .text-medium, .text-big {
|
||||
-fx-font-weight: bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user