mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Force address hyperlinks to be centered
This commit is contained in:
parent
083856aace
commit
002f8f3771
@ -1104,6 +1104,10 @@ textfield */
|
||||
-fx-padding: 0 0 0 0;
|
||||
}
|
||||
|
||||
.address-column {
|
||||
-fx-alignment: center !important;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* *
|
||||
* Icons *
|
||||
|
@ -377,6 +377,7 @@ public class DepositView extends ActivatableView<VBox, Void> {
|
||||
|
||||
private void setAddressColumnCellFactory() {
|
||||
addressColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
||||
addressColumn.getStyleClass().add("address-column");
|
||||
addressColumn.setCellFactory(
|
||||
new Callback<>() {
|
||||
|
||||
|
@ -285,6 +285,7 @@ public class LockedView extends ActivatableView<VBox, Void> {
|
||||
|
||||
private void setAddressColumnCellFactory() {
|
||||
addressColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
||||
addressColumn.getStyleClass().add("address-column");
|
||||
addressColumn.setCellFactory(
|
||||
new Callback<TableColumn<LockedListItem, LockedListItem>, TableCell<LockedListItem,
|
||||
LockedListItem>>() {
|
||||
|
@ -284,6 +284,7 @@ public class ReservedView extends ActivatableView<VBox, Void> {
|
||||
|
||||
private void setAddressColumnCellFactory() {
|
||||
addressColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
||||
addressColumn.getStyleClass().add("address-column");
|
||||
addressColumn.setCellFactory(
|
||||
new Callback<TableColumn<ReservedListItem, ReservedListItem>, TableCell<ReservedListItem,
|
||||
ReservedListItem>>() {
|
||||
|
@ -363,6 +363,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
|
||||
|
||||
private void setAddressColumnCellFactory() {
|
||||
addressColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
||||
addressColumn.getStyleClass().add("address-column");
|
||||
addressColumn.setCellFactory(
|
||||
new Callback<>() {
|
||||
|
||||
|
@ -82,6 +82,8 @@ import javafx.scene.control.Tooltip;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
|
||||
import javafx.beans.property.BooleanProperty;
|
||||
import javafx.beans.property.ReadOnlyObjectWrapper;
|
||||
import javafx.beans.property.SimpleBooleanProperty;
|
||||
@ -534,6 +536,7 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
|
||||
|
||||
private void setAddressColumnCellFactory() {
|
||||
addressColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
||||
addressColumn.getStyleClass().add("address-column");
|
||||
addressColumn.setCellFactory(
|
||||
new Callback<>() {
|
||||
|
||||
@ -552,6 +555,7 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
|
||||
hyperlinkWithIcon = new HyperlinkWithIcon(address, AwesomeIcon.EXTERNAL_LINK);
|
||||
hyperlinkWithIcon.setOnAction(event -> openBlockExplorer(item));
|
||||
hyperlinkWithIcon.setTooltip(new Tooltip(Res.get("tooltip.openBlockchainForAddress", address)));
|
||||
setAlignment(Pos.CENTER);
|
||||
setGraphic(hyperlinkWithIcon);
|
||||
} else {
|
||||
setGraphic(null);
|
||||
|
Loading…
Reference in New Issue
Block a user