Cleaned up some formatting.
This commit is contained in:
parent
fb2b8d933b
commit
5c1036b72f
|
@ -16,6 +16,7 @@ import javafx.scene.control.Label;
|
||||||
import javafx.scene.layout.BorderPane;
|
import javafx.scene.layout.BorderPane;
|
||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
|
import javafx.scene.paint.Color;
|
||||||
import javafx.scene.text.Text;
|
import javafx.scene.text.Text;
|
||||||
import javafx.scene.text.TextFlow;
|
import javafx.scene.text.TextFlow;
|
||||||
|
|
||||||
|
@ -55,12 +56,13 @@ public class TransactionTile extends BorderPane {
|
||||||
Label amountLabel = new Label("Amount");
|
Label amountLabel = new Label("Amount");
|
||||||
amountLabel.getStyleClass().add("bold-text");
|
amountLabel.getStyleClass().add("bold-text");
|
||||||
Label amountValue = new Label(CurrencyUtil.formatMoneyWithCurrencyPrefix(transaction.getMoneyAmount()));
|
Label amountValue = new Label(CurrencyUtil.formatMoneyWithCurrencyPrefix(transaction.getMoneyAmount()));
|
||||||
amountValue.getStyleClass().add("mono-font");
|
amountValue.getStyleClass().addAll("mono-font");
|
||||||
|
|
||||||
Label descriptionLabel = new Label("Description");
|
Label descriptionLabel = new Label("Description");
|
||||||
descriptionLabel.getStyleClass().add("bold-text");
|
descriptionLabel.getStyleClass().addAll("bold-text");
|
||||||
Label descriptionValue = new Label(transaction.getDescription());
|
Label descriptionValue = new Label(transaction.getDescription());
|
||||||
descriptionValue.setWrapText(true);
|
descriptionValue.setWrapText(true);
|
||||||
|
descriptionValue.setMaxWidth(500.0);
|
||||||
|
|
||||||
propertiesPane.getChildren().addAll(
|
propertiesPane.getChildren().addAll(
|
||||||
amountLabel, amountValue,
|
amountLabel, amountValue,
|
||||||
|
|
|
@ -31,6 +31,10 @@ Text {
|
||||||
-fx-fill: -fx-theme-text;
|
-fx-fill: -fx-theme-text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
-fx-text-fill: -fx-theme-text;
|
||||||
|
}
|
||||||
|
|
||||||
/* Font/text styles */
|
/* Font/text styles */
|
||||||
.mono-font {
|
.mono-font {
|
||||||
-fx-font-family: "JetBrains Mono", monospace;
|
-fx-font-family: "JetBrains Mono", monospace;
|
||||||
|
|
Loading…
Reference in New Issue