Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix height of blockconfirmation icon and reduces row height #1426

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import de.jensd.fx.fontawesome.AwesomeDude;
import de.jensd.fx.fontawesome.AwesomeIcon;
import javafx.geometry.Insets;
import javafx.scene.control.ContentDisplay;
import javafx.scene.control.Hyperlink;
import javafx.scene.control.Label;
Expand All @@ -21,10 +22,13 @@ public HyperlinkWithIcon(String text, AwesomeIcon awesomeIcon) {
icon.setMinWidth(20);
icon.setOpacity(0.7);
icon.getStyleClass().add("hyperlink");
icon.setPadding(new Insets(0));

setGraphic(icon);
setContentDisplay(ContentDisplay.RIGHT);
setGraphicTextGap(7.0);

//TODO: replace workaround of setting the style this way
tooltipProperty().addListener((observable, oldValue, newValue) -> newValue.setStyle("-fx-text-fill: -bs-black"));
}

Expand Down