add cancel button tooltip

This commit is contained in:
Denis-Cosmin NUTIU 2024-04-07 21:37:23 +03:00
parent e1ca04443a
commit b3ff128641
2 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,3 @@
tooltip {
-fx-show-delay: 250ms;
}

View file

@ -5,8 +5,12 @@
<?import javafx.scene.layout.*?>
<?import org.kordamp.ikonli.javafx.FontIcon?>
<BorderPane prefHeight="537.0" prefWidth="725.0" xmlns:fx="http://javafx.com/fxml/1"
xmlns="http://javafx.com/javafx/17.0.2-ea" fx:controller="dev.nuculabs.imagetagger.ui.MainPageController">
<BorderPane prefHeight="537.0" prefWidth="725.0"
xmlns:fx="http://javafx.com/fxml/1"
xmlns="http://javafx.com/javafx/17.0.2-ea"
fx:controller="dev.nuculabs.imagetagger.ui.MainPageController"
stylesheets="@main-window-view.css"
>
<padding>
<Insets bottom="20.0" left="30.0" right="30.0" top="20.0"/>
</padding>
@ -41,6 +45,9 @@
</padding>
</ProgressBar>
<Button fx:id="cancelButton" onAction="#onCancelTagImagesClick" alignment="CENTER_RIGHT" visible="false">
<tooltip>
<Tooltip text="Cancel"/>
</tooltip>
<graphic>
<FontIcon iconLiteral="far-times-circle" iconColor="red" iconSize="16"/>
</graphic>