Improve help icon

This commit is contained in:
Christoph Atteneder 2022-04-20 22:34:39 +02:00
parent 0894037622
commit 89926d1efb
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 13 additions and 4 deletions

View File

@ -856,6 +856,14 @@ tree-table-view:focused {
-fx-fill: -bs-text-color;
}
.link-icon {
-fx-fill: -bs-color-gray-ccc;
}
.link-icon:hover {
-fx-fill: -fx-accent;
}
/*******************************************************************************
* *
* Tooltip *

View File

@ -20,12 +20,13 @@ package bisq.desktop.components;
import bisq.desktop.util.FormBuilder;
import bisq.desktop.util.GUIUtil;
import de.jensd.fx.fontawesome.AwesomeIcon;
import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon;
import javafx.scene.control.Label;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.text.Text;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
@ -38,7 +39,7 @@ public class TitledGroupBg extends Pane {
private final HBox box;
private final Label label;
private final StringProperty text = new SimpleStringProperty();
private Label helpIcon;
private Text helpIcon;
///////////////////////////////////////////////////////////////////////////////////////////
// Constructor
@ -89,8 +90,8 @@ public class TitledGroupBg extends Pane {
public void setHelpUrl(String helpUrl) {
if (helpIcon == null) {
helpIcon = FormBuilder.getSmallIcon(AwesomeIcon.QUESTION);
helpIcon.getStyleClass().addAll("show-hand", "highlight");
helpIcon = FormBuilder.getIcon(MaterialDesignIcon.HELP_CIRCLE_OUTLINE, "1em");
helpIcon.getStyleClass().addAll("icon", "link-icon");
box.getChildren().add(helpIcon);
}