Skip to content

Commit ec99e9f

Browse files
committed
updating tooltip now, when project is edited. made popup round like mainview
1 parent ef5c645 commit ec99e9f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,9 @@ private Pane addProjectToProjectList(final Project p) {
316316
projectNameLabel.setTextFill(new Color(p.getColor().getRed() * dimFactor,
317317
p.getColor().getGreen() * dimFactor, p.getColor().getBlue() * dimFactor, 1));
318318
projectNameLabel.setUnderline(p.isWork());
319+
projectNameLabel.getTooltip().setText(p.getName());
319320

320-
// updateProjectView(); // TODO how to update currentProjectLabel when project was edited?
321+
// TODO how to update currentProjectLabel when active project was edited?
321322
realignProjectList();
322323
});
323324
});

src/main/resources/layouts/ViewLayoutPopup.fxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<?import javafx.scene.layout.VBox?>
2222
<?import javafx.scene.text.Font?>
2323

24-
<VBox fx:id="root" prefHeight="350.0" prefWidth="145.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.doubleslash.keeptime.viewpopup.ViewControllerPopup">
24+
<VBox fx:id="root" prefHeight="350.0" prefWidth="145.0" style="-fx-background-radius: 10 10 10 10; -fx-border-radius: 10 10 10 10; -fx-border-color: rgba(54,143,179,.0.01);" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.doubleslash.keeptime.viewpopup.ViewControllerPopup">
2525
<children>
2626
<TextField fx:id="searchTextField" maxHeight="15.0" minHeight="0.0" prefHeight="15.0" promptText="Search" stylesheets="@../css/application.css">
2727
<font>

0 commit comments

Comments
 (0)