Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
925a2a5a
Commit
925a2a5a
authored
7 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
externalzed color for red text in home tab
parent
bef1f246
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/de/deadlocker8/budgetmaster/logic/utils/Colors.java
+1
-0
1 addition, 0 deletions
src/de/deadlocker8/budgetmaster/logic/utils/Colors.java
src/de/deadlocker8/budgetmaster/ui/controller/HomeController.java
+1
-1
1 addition, 1 deletion
...eadlocker8/budgetmaster/ui/controller/HomeController.java
with
2 additions
and
1 deletion
src/de/deadlocker8/budgetmaster/logic/utils/Colors.java
+
1
−
0
View file @
925a2a5a
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
src/de/deadlocker8/budgetmaster/ui/controller/HomeController.java
+
1
−
1
View file @
925a2a5a
...
@@ -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
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment