From cbee341544a2f053a7112df43be31cf101d042bd Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 22 Aug 2024 12:01:57 +0200 Subject: [PATCH] use monospace font for addresses in utxo table --- .../com/sparrowwallet/sparrow/control/AddressCell.java | 1 + .../com/sparrowwallet/sparrow/wallet/wallet.css | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/AddressCell.java b/src/main/java/com/sparrowwallet/sparrow/control/AddressCell.java index ec388e0d..05fb63df 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/AddressCell.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/AddressCell.java @@ -45,6 +45,7 @@ public class AddressCell extends TreeTableCell { tooltip.setShowDelay(Duration.millis(250)); tooltip.setText(getTooltipText(utxoEntry, addressStatus.isDuplicate(), addressStatus.isDustAttack())); setTooltip(tooltip); + getStyleClass().add("address-cell"); if(addressStatus.isDustAttack()) { setGraphic(getDustAttackHyperlink(utxoEntry)); diff --git a/src/main/resources/com/sparrowwallet/sparrow/wallet/wallet.css b/src/main/resources/com/sparrowwallet/sparrow/wallet/wallet.css index 059ade27..d77948d6 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/wallet/wallet.css +++ b/src/main/resources/com/sparrowwallet/sparrow/wallet/wallet.css @@ -34,6 +34,16 @@ -fx-font-family: 'Roboto Mono'; } +.cell > .hyperlink { + -fx-font-family: none; + -fx-font-size: none; +} + +.cell > .tooltip { + -fx-font-family: none; + -fx-font-size: 0.85em; +} + .hashindex-row { -fx-opacity: 0.7; }