change show delay duration for help tooltips to 500ms

This commit is contained in:
Craig Raw 2022-03-29 12:10:47 +02:00
parent ba199ff11b
commit 1f51f632c4
2 changed files with 2 additions and 1 deletions

2
drongo

@ -1 +1 @@
Subproject commit 74e32bab3d4f229e1b0207c7980c99e04c5115fa Subproject commit d1088fe9ee6da0e53fcfdff020cab3c16c15702b

View file

@ -21,6 +21,7 @@ public class HelpLabel extends Label {
tooltip.textProperty().bind(helpTextProperty()); tooltip.textProperty().bind(helpTextProperty());
tooltip.graphicProperty().bind(helpGraphicProperty()); tooltip.graphicProperty().bind(helpGraphicProperty());
tooltip.setShowDuration(Duration.seconds(15)); tooltip.setShowDuration(Duration.seconds(15));
tooltip.setShowDelay(Duration.millis(500));
getStyleClass().add("help-label"); getStyleClass().add("help-label");
Platform.runLater(() -> setTooltip(tooltip)); Platform.runLater(() -> setTooltip(tooltip));