Skip to content

Commit

Permalink
Improve help icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurlx committed Apr 20, 2022
1 parent 0894037 commit 89926d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions desktop/src/main/java/bisq/desktop/bisq.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
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;
Expand All @@ -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
Expand Down Expand Up @@ -89,8 +90,8 @@ public void setText(String text) {

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);
}

Expand Down

0 comments on commit 89926d1

Please sign in to comment.