Skip to content

Commit a81fbfc

Browse files
committed
using hover colors now
1 parent 995d710 commit a81fbfc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/de/doubleslash/keeptime/view/ManageWorkController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected void updateItem(final Project project, final boolean empty) {
146146
if (project == null || empty) {
147147
setGraphic(null);
148148
} else {
149-
setColor(this, model.defaultBackgroundColor.get());
149+
setColor(this, model.hoverBackgroundColor.get());
150150

151151
setTextFill(project.getColor());
152152
setText(project.getName());
@@ -216,7 +216,7 @@ public void changed(final ObservableValue<? extends String> observable, final St
216216
projectComboBox.getSelectionModel().clearSelection();
217217
// needed to avoid exception on empty textfield https://bugs.openjdk.java.net/browse/JDK-8081700
218218
Platform.runLater(() -> {
219-
setTextColor(projectComboBox.getEditor(), model.defaultFontColor.get());
219+
setTextColor(projectComboBox.getEditor(), model.hoverFontColor.get());
220220
});
221221
}
222222

@@ -263,10 +263,10 @@ public void initializeWith(final Work work) {
263263

264264
projectComboBox.getSelectionModel().select(work.getProject());
265265

266-
setColor(projectComboBox, model.defaultBackgroundColor.get());
267-
setColor(projectComboBox.getEditor(), model.defaultBackgroundColor.get());
266+
setColor(projectComboBox, model.hoverBackgroundColor.get());
267+
setColor(projectComboBox.getEditor(), model.hoverBackgroundColor.get());
268268

269-
setTextColor(projectComboBox.getEditor(), model.defaultFontColor.get());
269+
setTextColor(projectComboBox.getEditor(), model.hoverFontColor.get());
270270

271271
}
272272

0 commit comments

Comments
 (0)