|
26 | 26 | import java.util.stream.Collectors; |
27 | 27 |
|
28 | 28 | import javafx.scene.control.skin.DatePickerSkin; |
| 29 | +import javafx.scene.text.Text; |
29 | 30 | import org.slf4j.Logger; |
30 | 31 | import org.slf4j.LoggerFactory; |
31 | 32 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -152,11 +153,11 @@ protected void updateItem(final TableRow item, final boolean empty) { |
152 | 153 | setText(null); |
153 | 154 | } else { |
154 | 155 | final String notes = item.getNotes(); |
155 | | - final Label label = new Label(notes.isEmpty() ? EMPTY_NOTE : notes); |
156 | | - label.setUnderline(item.isUnderlined()); |
157 | | - label.setTooltip(new Tooltip(notes)); |
158 | | - this.setGraphic(label); |
159 | | - workTableTreeView.refresh(); |
| 156 | + final Text text = new Text(notes.isEmpty() ? EMPTY_NOTE : notes); |
| 157 | + this.setText(text.getText()); |
| 158 | + |
| 159 | + final Circle circle = new Circle(6, item.getProjectColor()); |
| 160 | + this.setGraphic(circle); |
160 | 161 | } |
161 | 162 | } |
162 | 163 | }; |
@@ -229,10 +230,9 @@ private void updateReport(final LocalDate dateToShow) { |
229 | 230 | final HBox projectButtonBox = new HBox(); |
230 | 231 | projectButtonBox.getChildren().add(createCopyProjectButton(onlyCurrentProjectWork)); |
231 | 232 |
|
232 | | - final Circle circle = new Circle(6, project.getColor()); |
233 | 233 |
|
234 | 234 | final TreeItem<TableRow> projectRow = new TreeItem<>( |
235 | | - new ProjectTableRow(project, projectWorkSeconds, projectButtonBox), circle); |
| 235 | + new ProjectTableRow(project, projectWorkSeconds, projectButtonBox)); |
236 | 236 |
|
237 | 237 | for (final Work w : onlyCurrentProjectWork) { |
238 | 238 | final HBox workButtonBox = new HBox(5.0); |
|
0 commit comments