Skip to content
Snippets Groups Projects
Commit 0f61d410 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #118

color amounts on home tab (category budgets)
parent 5cf822a2
Branches
Tags
2 merge requests!142merge v1_3_0 into master,!121Merge Reports into v1_3_0
......@@ -60,8 +60,16 @@ public class CategoryBudgetCell extends ListCell<CategoryBudget>
HBox.setHgrow(r, Priority.ALWAYS);
Label labelBudget = new Label(String.valueOf(Helpers.NUMBER_FORMAT.format(item.getBudget() / 100.0)).replace(".", ",") + " " + homeController.getController().getSettings().getCurrency());
labelBudget.setStyle("-fx-font-weight: bold; -fx-font-size: 16; -fx-text-fill: #247A2D;");
if(item.getBudget() > 0)
{
labelBudget.setText("+" + labelBudget.getText());
}
else
{
labelBudget.setStyle("-fx-font-weight: bold; -fx-font-size: 16; -fx-text-fill: #CC0000");
}
labelBudget.setPrefHeight(HEIGHT);
labelBudget.setStyle("-fx-font-weight: bold; -fx-font-size: 16; -fx-text-fill: #212121;");
labelBudget.setAlignment(Pos.CENTER);
labelBudget.getStyleClass().add("greylabel");
hbox.getChildren().add(labelBudget);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment