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

externalzed color for red text in home tab

parent bef1f246
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ import javafx.scene.paint.Color; ...@@ -5,6 +5,7 @@ import javafx.scene.paint.Color;
public class Colors public class Colors
{ {
public static final Color TEXT = Color.web("#212121"); public static final Color TEXT = Color.web("#212121");
public static final Color TEXT_RED = Color.web("#CC0000");
public static final Color INCOME = Color.web("#22BAD9"); public static final Color INCOME = Color.web("#22BAD9");
public static final Color PAYMENT = Color.web("#F2612D"); public static final Color PAYMENT = Color.web("#F2612D");
public static final Color BACKGROUND = Color.web("#F4F4F4"); public static final Color BACKGROUND = Color.web("#F4F4F4");
......
...@@ -93,7 +93,7 @@ public class HomeController implements Refreshable ...@@ -93,7 +93,7 @@ public class HomeController implements Refreshable
labelBudget.setText(Helpers.getCurrencyString(remaining, currency)); labelBudget.setText(Helpers.getCurrencyString(remaining, currency));
if(remaining <= 0) if(remaining <= 0)
{ {
labelBudget.setStyle("-fx-text-fill: #CC0000"); labelBudget.setStyle("-fx-text-fill: " + ConvertTo.toRGBHexWithoutOpacity(Colors.TEXT_RED));
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment