reduce the minimum window width to 750, fitting the send tab, transaction diagram and transaction tab views to narrow windows and narrowing the wallet menu and transaction tree below 900
What changed, and why it matters
This commit is a user-interface layout tweak for the Sparrow Wallet desktop app. It makes the main window usable at narrower widths by shrinking minimum sizes, wrapping labels, and making diagrams and menus responsive. There is no security-relevant change here—no cryptography, networking, wallet logic, or data handling is modified.
No security action needed. Treat as a normal UI/UX improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adjusts JavaFX FXML and CSS to support a reduced minimum window width (from 650 to 750 in stage constraints, with responsive layouts below 900). It adds a ‘narrow-window’ CSS class toggled on the root box, binds diagram curve widths and label sizes to available width, reduces TreeView min-width in narrow mode, and sets minWidth=’-Infinity’ on several buttons to allow them to shrink. No code paths related to keys, transactions, networking, or parsing are changed.
Changed components
Sparrow Wallet desktop UI layout engineSend tab FXML/CSSTransaction tab FXML/CSSTransaction diagram renderingWallet menu and transaction tree stylingInspect captured patch +117 / −47
### src/main/java/com/sparrowwallet/sparrow/AppController.java
@@ -84,6 +84,7 @@
public class AppController implements Initializable {
private static final Logger log = LoggerFactory.getLogger(AppController.class);
+ private static final double NARROW_WINDOW_WIDTH = 900;
public static final String DRAG_OVER_CLASS = "drag-over";
public static final String LONG_TRANSACTION_TAB_CLASS = "long-transaction-tab";
@@ -396,6 +397,14 @@ void initializeView() {
if(Config.get().isChunkAddresses()) {
rootBox.getStyleClass().add("chunk-addresses");
}
+ rootBox.widthProperty().addListener((_, _, width) -> {
+ boolean narrow = width.doubleValue() < NARROW_WINDOW_WIDTH;
+ if(narrow && !rootBox.getStyleClass().contains("narrow-window")) {
+ rootBox.getStyleClass().add("narrow-window");
+ } else if(!narrow) {
+ rootBox.getStyleClass().remove("narrow-window");
+ }
+ });
hideEmptyUsedAddressesProperty.set(Config.get().isHideEmptyUsedAddresses());
hideEmptyUsedAddresses.selectedProperty().bindBidirectional(hideEmptyUsedAddressesProperty);
### src/main/java/com/sparrowwallet/sparrow/AppServices.java
@@ -656,7 +656,7 @@ public static AppController newAppWindow(Stage stage) {
scene.getStylesheets().add(AppServices.class.getResource("app.css").toExternalForm());
stage.setTitle("Sparrow");
- stage.setMinWidth(650);
+ stage.setMinWidth(750);
stage.setMinHeight(708);
stage.setScene(scene);
stage.getIcons().add(getWindowIcon());
### src/main/java/com/sparrowwallet/sparrow/control/HelpLabel.java
@@ -25,6 +25,7 @@ public HelpLabel() {
tooltip.setShowDuration(Duration.seconds(15));
tooltip.setShowDelay(Duration.millis(500));
getStyleClass().add("help-label");
+ setMinWidth(USE_PREF_SIZE);
accessibleTextProperty().bind(helpTextProperty());
Platform.runLater(() -> setTooltip(tooltip));
### src/main/java/com/sparrowwallet/sparrow/control/RecentBlocksView.java
@@ -35,6 +35,7 @@ public class RecentBlocksView extends Pane {
private static final Pattern ELAPSED_PATTERN = Pattern.compile("(\\d+)([mhd]) ago");
private final CompositeDisposable disposables = new CompositeDisposable();
+ private final Rectangle clip = new Rectangle(-20, -40, CUBE_SPACING * 3 - 20, 100);
private final ObjectProperty<List<BlockCube>> cubesProperty = new SimpleObjectProperty<>(new ArrayList<>());
private final Tooltip tooltip = new Tooltip();
@@ -47,8 +48,8 @@ public RecentBlocksView() {
}
});
- Rectangle clip = new Rectangle(-20, -40, CUBE_SPACING * 3 - 20, 100);
setClip(clip);
+ widthProperty().addListener((_, _, _) -> clipToWidth());
Observable<Long> intervalObservable = Observable.interval(1, TimeUnit.MINUTES);
disposables.add(intervalObservable.observeOn(JavaFxScheduler.platform()).subscribe(_ -> {
@@ -138,6 +139,13 @@ public void drawView() {
}
}
+ private void clipToWidth() {
+ int visibleCubes = (int)Math.clamp(Math.floor((getWidth() + 20) / CUBE_SPACING), 1, 3);
+ double visibleWidth = visibleCubes * CUBE_SPACING - 20;
+ clip.setWidth(visibleWidth);
+ setTranslateX(Math.max(0, getWidth() - visibleWidth));
+ }
+
private void createSeparator() {
Line separator = new Line(SEPARATOR_X, -9, SEPARATOR_X, CUBE_SIZE);
separator.getStyleClass().add("blocks-separator");
### src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java
@@ -22,6 +22,7 @@
import com.sparrowwallet.sparrow.io.Config;
import com.sparrowwallet.sparrow.net.ExchangeSource;
import com.sparrowwallet.sparrow.wallet.OptimizationStrategy;
+import javafx.beans.binding.DoubleBinding;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleBooleanProperty;
@@ -72,6 +73,9 @@ public class TransactionDiagram extends GridPane {
private static final int TOOLTIP_SHOW_DELAY = 50;
private static final int RELATIVE_SIZE_MAX_RADIUS = 7;
private static final int ROW_HEIGHT = 27;
+ private static final double MIN_CONNECTOR_WIDTH = 80;
+ private static final double LABELS_PREF_WIDTH = 200;
+ private static final double MAX_LABELS_MIN_WIDTH = 150;
private WalletTransaction walletTx;
private final BooleanProperty finalProperty = new SimpleBooleanProperty(false);
@@ -153,7 +157,7 @@ public TransactionDiagram() {
ColumnConstraints col2 = new ColumnConstraints();
col2.setHgrow(Priority.ALWAYS);
- col2.setPercentWidth(25);
+ col2.setPrefWidth(LABELS_PREF_WIDTH);
col2.setFillWidth(true);
ColumnConstraints col3 = new ColumnConstraints();
@@ -172,7 +176,7 @@ public TransactionDiagram() {
ColumnConstraints col6 = new ColumnConstraints();
col6.setHgrow(Priority.ALWAYS);
- col6.setPercentWidth(25);
+ col6.setPrefWidth(LABELS_PREF_WIDTH);
col6.setFillWidth(true);
getColumnConstraints().addAll(col1, col2, col3, col4, col5, col6);
@@ -445,7 +449,7 @@ private StackPane getBracket(double width, double height, Glyph glyph, String to
}
private Pane getInputsLabels(List<Map<BlockTransactionHashIndex, WalletNode>> displayedUtxoSets) {
- VBox inputsBox = new VBox();
+ VBox inputsBox = createLabelsBox();
inputsBox.setPadding(new Insets(0, 10, 0, 10));
inputsBox.minHeightProperty().bind(minHeightProperty());
inputsBox.setAlignment(Pos.BASELINE_RIGHT);
@@ -457,6 +461,9 @@ private Pane getInputsLabels(List<Map<BlockTransactionHashIndex, WalletNode>> di
WalletNode walletNode = displayedUtxos.get(input);
String desc = getInputDescription(input);
Label label = new Label(desc);
+ if(input.getLabel() == null || input.getLabel().isEmpty()) {
+ label.setMinWidth(Region.USE_PREF_SIZE);
+ }
label.setPrefHeight(labelHeight);
label.setAlignment(Pos.BASELINE_LEFT);
label.getStyleClass().add("utxo-label");
@@ -596,6 +603,7 @@ private Pane getInputsLines(List<Map<BlockTransactionHashIndex, WalletNode>> dis
displayedUtxoSets.forEach(displayedUtxos::putAll);
VBox pane = new VBox();
+ pane.setMinWidth(MIN_CONNECTOR_WIDTH);
Group group = new Group();
VBox.setVgrow(group, Priority.ALWAYS);
@@ -607,7 +615,7 @@ private Pane getInputsLines(List<Map<BlockTransactionHashIndex, WalletNode>> dis
yaxisLine.getStyleClass().add("boundary");
group.getChildren().add(yaxisLine);
- double width = 140.0;
+ DoubleBinding curveWidth = pane.widthProperty().subtract(RELATIVE_SIZE_MAX_RADIUS);
List<BlockTransactionHashIndex> inputs = new ArrayList<>(displayedUtxos.keySet());
long sum = walletTx.getTotal();
int numUtxos = displayedUtxos.size();
@@ -626,12 +634,12 @@ private Pane getInputsLines(List<Map<BlockTransactionHashIndex, WalletNode>> dis
int nodeHeight = 17;
double additional = (0.5 - scaleFactor) * ((double)nodeHeight);
curve.setStartY(scale(getDiagramHeight(), scaleFactor, additional));
- curve.setEndX(width);
+ curve.endXProperty().bind(pane.widthProperty());
curve.setEndY(scale(getDiagramHeight(), 0.5, 0));
- curve.setControlX1(scale(width - RELATIVE_SIZE_MAX_RADIUS, 0.2, 0));
+ curve.controlX1Property().bind(curveWidth.multiply(0.8));
curve.setControlY1(curve.getStartY());
- curve.setControlX2(scale(width - RELATIVE_SIZE_MAX_RADIUS, 0.8, 0));
+ curve.controlX2Property().bind(curveWidth.multiply(0.2));
curve.setControlY2(curve.getEndY());
group.getChildren().add(curve);
@@ -648,6 +656,16 @@ private Pane getInputsLines(List<Map<BlockTransactionHashIndex, WalletNode>> dis
return pane;
}
+ private VBox createLabelsBox() {
+ return new VBox() {
+ @Override
+ protected double computeMinWidth(double height) {
+ double minWidth = super.computeMinWidth(height);
+ return isExpanded() ? minWidth : Math.max(minWidth, Math.min(computePrefWidth(height), MAX_LABELS_MIN_WIDTH));
+ }
+ };
+ }
+
private static double scale(Double value, double scaleFactor, double additional) {
return value * (1.0 - scaleFactor) + additional;
}
@@ -695,6 +713,7 @@ private List<Payment> getUserPayments() {
private Pane getOutputsLines(List<WalletTransaction.Output> displayedOutputs) {
VBox pane = new VBox();
+ pane.setMinWidth(MIN_CONNECTOR_WIDTH);
Group group = new Group();
VBox.setVgrow(group, Priority.ALWAYS);
@@ -706,7 +725,7 @@ private Pane getOutputsLines(List<WalletTransaction.Output> displayedOutputs) {
yaxisLine.getStyleClass().add("boundary");
group.getChildren().add(yaxisLine);
- double width = 140.0;
+ DoubleBinding curveWidth = pane.widthProperty().subtract(RELATIVE_SIZE_MAX_RADIUS);
long sum = walletTx.getTotal();
List<Long> values = displayedOutputs.stream().map(o -> o.getTransactionOutput().getValue()).collect(Collectors.toList());
values.add(walletTx.getFee());
@@ -717,22 +736,23 @@ private Pane getOutputsLines(List<WalletTransaction.Output> displayedOutputs) {
curve.setStartX(0);
curve.setStartY(scale(getDiagramHeight(), 0.5, 0));
- curve.setEndX(width - RELATIVE_SIZE_MAX_RADIUS);
+ curve.endXProperty().bind(curveWidth);
double scaleFactor = (double)i / (numOutputs + 1);
int nodeHeight = 20;
double additional = (0.5 - scaleFactor) * ((double)nodeHeight);
curve.setEndY(scale(getDiagramHeight(), scaleFactor, additional));
- curve.setControlX1(scale(width - RELATIVE_SIZE_MAX_RADIUS, 0.2, 0));
+ curve.controlX1Property().bind(curveWidth.multiply(0.8));
curve.controlY1Property().bind(curve.startYProperty());
- curve.setControlX2(scale(width - RELATIVE_SIZE_MAX_RADIUS, 0.8, 0));
+ curve.controlX2Property().bind(curveWidth.multiply(0.2));
curve.controlY2Property().bind(curve.endYProperty());
group.getChildren().add(curve);
if(sum > 0) {
long radius = Math.min(RELATIVE_SIZE_MAX_RADIUS, Math.round((double)values.get(numOutputs-i) * (RELATIVE_SIZE_MAX_RADIUS - 1) / sum) + 1);
- Circle circle = new Circle(curve.getEndX(), curve.getEndY(), radius);
+ Circle circle = new Circle(0, curve.getEndY(), radius);
+ circle.centerXProperty().bind(curve.endXProperty());
circle.getStyleClass().add("size-indicator");
group.getChildren().add(circle);
}
@@ -743,7 +763,7 @@ private Pane getOutputsLines(List<WalletTransaction.Output> displayedOutputs) {
}
private Pane getOutputsLabels(List<WalletTransaction.Output> displayedOutputs) {
- VBox outputsBox = new VBox();
+ VBox outputsBox = createLabelsBox();
outputsBox.setPadding(new Insets(0, 20, 0, 10));
outputsBox.setAlignment(Pos.BASELINE_LEFT);
outputsBox.getChildren().add(createSpacer());
@@ -816,6 +836,7 @@ private OutputNode buildPaymentNode(WalletTransaction.Output output) {
recipientLabel.getStyleClass().add(labelledPayment ? "payment-label" : "recipient-label");
if(addressLabel) {
recipientLabel.setSkin(new AddressLabelSkin(recipientLabel));
+ recipientLabel.setMinWidth(Region.USE_PREF_SIZE);
}
Wallet toWallet = walletTx.getToWallet(AppServices.get().getOpenWallets().keySet(), payment);
WalletNode toNode = payment instanceof WalletNodePayment walletNodePayment ? walletNodePayment.getWalletNode() : null;
@@ -872,6 +893,7 @@ private OutputNode buildHdChangeNode(WalletTransaction.ChangeOutput changeOutput
Label changeLabel = new Label(changeDesc, overGapLimit ? getChangeWarningGlyph() : getChangeGlyph());
changeLabel.getStyleClass().addAll("output-label", "change-label");
changeLabel.setSkin(new AddressLabelSkin(changeLabel));
+ changeLabel.setMinWidth(Region.USE_PREF_SIZE);
Tooltip changeTooltip = new Tooltip("Change of " + getCoinValue(value) + " to " + changeNode + "\n" + changeAddress.toString() + (overGapLimit ? "\nAddress is beyond the gap limit!" : ""));
changeTooltip.getStyleClass().add("change-label");
changeTooltip.setShowDelay(new Duration(TOOLTIP_SHOW_DELAY));
@@ -920,6 +942,7 @@ private OutputNode buildSpChangeNode(WalletTransaction.SilentPaymentChangeOutput
Label changeLabel = new Label("Change", getChangeGlyph());
changeLabel.getStyleClass().addAll("output-label", "payment-label");
changeLabel.setSkin(new AddressLabelSkin(changeLabel));
+ changeLabel.setMinWidth(Region.USE_PREF_SIZE);
Tooltip changeTooltip = new Tooltip("Change of " + getCoinValue(silentPayment.getAmount()) + "\n" + silentPayment.getDisplayAddress());
changeTooltip.getStyleClass().add("change-label");
changeTooltip.setShowDelay(new Duration(TOOLTIP_SHOW_DELAY));
@@ -1068,7 +1091,7 @@ private int getMaxPayments() {
}
private boolean isReducedHeight() {
- return !isFinal() && AppServices.isReducedWindowHeight(this);
+ return getScene() == null ? AppServices.isReducedWindowHeight() : AppServices.isReducedWindowHeight(this);
}
private Node createSpacer() {
@@ -1153,6 +1176,8 @@ public boolean isExpanded() {
public void setExpanded(boolean expanded) {
this.expanded = expanded;
+ getColumnConstraints().get(1).setPrefWidth(expanded ? USE_COMPUTED_SIZE : LABELS_PREF_WIDTH);
+ getColumnConstraints().get(5).setPrefWidth(expanded ? USE_COMPUTED_SIZE : LABELS_PREF_WIDTH);
}
private static class PayjoinBlockTransactionHashIndex extends BlockTransactionHashIndex {
### src/main/java/com/sparrowwallet/sparrow/transaction/TransactionController.java
@@ -108,6 +108,11 @@ private void fetchTransactions() {
private void initializeTxTree() {
txTreeWidthProperty.bind(txSplitPane.widthProperty().multiply(txSplitPane.getDividers().getFirst().positionProperty()));
+ txtree.minWidthProperty().addListener((_, oldWidth, newWidth) -> {
+ if(newWidth.doubleValue() < oldWidth.doubleValue() && txSplitPane.getWidth() > 0 && txtree.getWidth() <= oldWidth.doubleValue() + 1) {
+ Platform.runLater(() -> txSplitPane.setDividerPosition(0, newWidth.doubleValue() / txSplitPane.getWidth()));
+ }
+ });
HeadersForm headersForm = new HeadersForm(txdata);
TreeItem<TransactionForm> rootItem = new TreeItem<>(headersForm);
### src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml
@@ -44,11 +44,11 @@
<RowConstraints />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
- <Form GridPane.columnIndex="0" GridPane.rowIndex="0" GridPane.columnSpan="2">
- <Fieldset text="Transaction" inputGrow="SOMETIMES" wrapWidth="620">
+ <Form GridPane.columnIndex="0" GridPane.rowIndex="0" GridPane.columnSpan="2" styleClass="narrow-labels">
+ <Fieldset text="Transaction" inputGrow="SOMETIMES" wrapWidth="500">
<Field text="Txid:" styleClass="label-button">
<IdLabel fx:id="id"/>
- <SegmentedButton>
+ <SegmentedButton minWidth="-Infinity">
<buttons>
<ToggleButton accessibleText="Copy Transaction ID" accessibleRole="BUTTON" fx:id="copyTxid" onAction="#copyId">
<graphic>
@@ -84,7 +84,7 @@
</VBox>
</Tab>
<Tab text="Detail" closable="false">
- <GridPane hgap="10.0" vgap="10.0">
+ <GridPane hgap="10.0" vgap="10.0" styleClass="narrow-labels">
<columnConstraints>
<ColumnConstraints percentWidth="50" />
<ColumnConstraints percentWidth="50" />
@@ -106,7 +106,7 @@
<Form GridPane.columnIndex="1" GridPane.rowIndex="0">
<Fieldset fx:id="locktimeFieldset" text="Absolute Locktime" inputGrow="SOMETIMES">
<Field text="Type:">
- <SegmentedButton>
+ <SegmentedButton minWidth="-Infinity">
<toggleGroup>
<ToggleGroup fx:id="locktimeToggleGroup" />
</toggleGroup>
### src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml
@@ -31,7 +31,7 @@
<RowConstraints />
<RowConstraints />
</rowConstraints>
- <Form GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="0">
+ <Form GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="0" styleClass="narrow-labels">
<Fieldset fx:id="inputFieldset" inputGrow="SOMETIMES" text="Input" wrapWidth="680">
<Field text="Outpoint:" styleClass="label-button">
<IdLabel fx:id="outpoint" />
@@ -93,10 +93,10 @@
</Fieldset>
</Form>
- <Form GridPane.columnIndex="1" GridPane.rowIndex="4">
+ <Form GridPane.columnIndex="1" GridPane.rowIndex="4" styleClass="narrow-labels">
<Fieldset fx:id="locktimeFieldset" text="Locktime (nSequence)" inputGrow="SOMETIMES">
<Field text="Type:">
- <SegmentedButton>
+ <SegmentedButton minWidth="-Infinity">
<toggleGroup>
<ToggleGroup fx:id="locktimeToggleGroup" />
</toggleGroup>
### src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml
@@ -28,7 +28,7 @@
<RowConstraints />
<RowConstraints />
</rowConstraints>
- <Form GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="0">
+ <Form GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="0" styleClass="narrow-labels">
<Fieldset fx:id="outputFieldset" inputGrow="SOMETIMES" text="Output">
<Field text="Sends:">
<CopyableCoinLabel fx:id="value"/>
### src/main/resources/com/sparrowwallet/sparrow/transaction/transaction.css
@@ -37,3 +37,15 @@
}
.hide-amounts .output-value, .hide-amounts .output-other-value { -fx-fill: -fx-control-inner-background }
+
+#txtree {
+ -fx-min-width: 170;
+}
+
+.root.narrow-window #txtree {
+ -fx-min-width: 120;
+}
+
+.root.narrow-window .narrow-labels .fieldset:horizontal .label-container {
+ -fx-pref-width: 70px;
+}
### src/main/resources/com/sparrowwallet/sparrow/transaction/transaction.fxml
@@ -12,7 +12,7 @@
<masterNode>
<SplitPane fx:id="txSplitPane" dividerPositions="0.15">
<items>
- <TreeView fx:id="txtree" minWidth="170">
+ <TreeView fx:id="txtree">
<SplitPane.resizableWithParent>false</SplitPane.resizableWithParent>
</TreeView>
<StackPane fx:id="txpane" styleClass="tx-pane" minHeight="0"/>
### src/main/resources/com/sparrowwallet/sparrow/wallet/keystore.fxml
@@ -86,23 +86,23 @@
<Field fx:id="xpubField" text="xpub:">
<TextArea fx:id="xpub" wrapText="true" prefRowCount="2" maxHeight="52" />
<VBox styleClass="xpub-buttons" HBox.hgrow="NEVER">
- <Button accessibleText="Scan QR Code" fx:id="scanXpubQR" onAction="#scanXpubQR">
+ <Button accessibleText="Scan QR Code" fx:id="scanXpubQR" onAction="#scanXpubQR" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="CAMERA" />
</graphic>
<tooltip>
<Tooltip text="Scan a QR code" />
</tooltip>
</Button>
- <Button accessibleText="Show QR Code" fx:id="displayXpubQR" onAction="#displayXpubQR">
+ <Button accessibleText="Show QR Code" fx:id="displayXpubQR" onAction="#displayXpubQR" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="QRCODE" />
</graphic>
<tooltip>
<Tooltip text="Display as a QR code" />
</tooltip>
</Button>
- <Button accessibleText="Switch Key Header" fx:id="switchXpubHeader" onAction="#switchXpubHeader">
+ <Button accessibleText="Switch Key Header" fx:id="switchXpubHeader" onAction="#switchXpubHeader" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="EXCHANGE_ALT" />
</graphic>
### src/main/resources/com/sparrowwallet/sparrow/wallet/payment.fxml
@@ -78,20 +78,20 @@
</Label>
</Group>
<Region style="-fx-pref-width: 5" />
- <ToggleButton fx:id="maxButton" text="Max" onAction="#setMaxInput" />
+ <ToggleButton fx:id="maxButton" text="Max" onAction="#setMaxInput" minWidth="-Infinity" />
</Field>
</Fieldset>
</Form>
<Form GridPane.columnIndex="2" GridPane.rowIndex="0">
<Fieldset inputGrow="ALWAYS" style="-fx-padding: 5 0 0 0">
<HBox>
- <Button accessibleText="Scan QR Code" text="" fx:id="scanQrButton" onAction="#scanQrAddress" prefHeight="30">
+ <Button accessibleText="Scan QR Code" text="" fx:id="scanQrButton" onAction="#scanQrAddress" prefHeight="30" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="CAMERA" />
</graphic>
</Button>
<Region HBox.hgrow="ALWAYS" />
- <Button fx:id="addPaymentButton" text="Add" onAction="#addPayment" prefHeight="30">
+ <Button fx:id="addPaymentButton" text="Add" onAction="#addPayment" prefHeight="30" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="PLUS" />
</graphic>
### src/main/resources/com/sparrowwallet/sparrow/wallet/send.css
@@ -30,7 +30,7 @@
.amount-field {
-fx-pref-width: 140px;
- -fx-min-width: 140px;
+ -fx-min-width: 100px;
-fx-max-width: 140px;
}
@@ -40,6 +40,7 @@
}
.feeRatesChart {
+ -fx-min-width: 150px;
-fx-max-width: 335px;
-fx-max-height: 130px;
}
@@ -61,6 +62,10 @@
-fx-opacity: 0.3;
}
+#targetBlocks, #feeRange {
+ -fx-min-width: 240px;
+}
+
#feeRateField .input-container {
-fx-alignment: center-left;
}
### src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml
@@ -56,11 +56,11 @@
<Form styleClass="title-form" GridPane.columnIndex="0" GridPane.rowIndex="1">
<Fieldset inputGrow="ALWAYS" text="Fee"/>
</Form>
- <HBox GridPane.columnIndex="1" GridPane.rowIndex="1" GridPane.columnSpan="2" GridPane.halignment="RIGHT" alignment="CENTER_RIGHT">
+ <HBox GridPane.columnIndex="0" GridPane.rowIndex="1" GridPane.columnSpan="3" GridPane.halignment="RIGHT" alignment="CENTER_RIGHT" pickOnBounds="false">
<padding>
<Insets right="10.0" />
</padding>
- <SegmentedButton>
+ <SegmentedButton minWidth="-Infinity">
<toggleGroup>
<ToggleGroup fx:id="feeSelectionToggleGroup" />
</toggleGroup>
@@ -133,23 +133,23 @@
</Fieldset>
</Form>
<AnchorPane GridPane.columnIndex="1" GridPane.rowIndex="2" GridPane.columnSpan="2">
- <BlockTargetFeeRatesChart fx:id="blockTargetFeeRatesChart" styleClass="feeRatesChart" legendVisible="false" AnchorPane.topAnchor="10" AnchorPane.leftAnchor="20" animated="false" minHeight="135">
+ <BlockTargetFeeRatesChart fx:id="blockTargetFeeRatesChart" styleClass="feeRatesChart" legendVisible="false" AnchorPane.topAnchor="10" AnchorPane.leftAnchor="20" AnchorPane.rightAnchor="0" animated="false" minHeight="135">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" forceZeroInRange="false" />
</yAxis>
</BlockTargetFeeRatesChart>
- <MempoolSizeFeeRatesChart fx:id="mempoolSizeFeeRatesChart" styleClass="feeRatesChart" legendVisible="false" AnchorPane.topAnchor="10" AnchorPane.leftAnchor="20" animated="false" minHeight="135">
+ <MempoolSizeFeeRatesChart fx:id="mempoolSizeFeeRatesChart" styleClass="feeRatesChart" legendVisible="false" AnchorPane.topAnchor="10" AnchorPane.leftAnchor="20" AnchorPane.rightAnchor="0" animated="false" minHeight="135">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</MempoolSizeFeeRatesChart>
- <RecentBlocksView fx:id="recentBlocksView" styleClass="feeRatesChart" AnchorPane.topAnchor="10" AnchorPane.leftAnchor="74" translateY="30" minHeight="135"/>
+ <RecentBlocksView fx:id="recentBlocksView" styleClass="feeRatesChart" AnchorPane.topAnchor="10" AnchorPane.leftAnchor="20" AnchorPane.rightAnchor="0" translateY="30" minHeight="135"/>
</AnchorPane>
</GridPane>
<StackPane VBox.vgrow="SOMETIMES">
@@ -158,13 +158,13 @@
</VBox>
</center>
<bottom>
- <AnchorPane>
+ <HBox alignment="CENTER_LEFT">
<padding>
- <Insets left="25.0" right="25.0" bottom="25.0" />
+ <Insets left="30.0" right="35.0" bottom="25.0" />
</padding>
- <HBox AnchorPane.leftAnchor="5" alignment="CENTER_LEFT">
- <Label text="Optimize:" styleClass="buttonRowLabel" />
- <SegmentedButton>
+ <HBox alignment="CENTER_LEFT" minWidth="-Infinity">
+ <Label text="Optimize:" styleClass="buttonRowLabel" minWidth="-Infinity" />
+ <SegmentedButton minWidth="-Infinity">
<toggleGroup>
<ToggleGroup fx:id="optimizationToggleGroup" />
</toggleGroup>
@@ -194,7 +194,8 @@
</graphic>
</Label>
</HBox>
- <HBox AnchorPane.rightAnchor="10">
+ <Region HBox.hgrow="ALWAYS" minWidth="20" />
+ <HBox minWidth="-Infinity">
<Button fx:id="clearButton" text="Clear" cancelButton="true" onAction="#clear" />
<Region HBox.hgrow="ALWAYS" style="-fx-min-width: 20px" />
<Button fx:id="notificationButton" text="Broadcast Notification" contentDisplay="RIGHT" graphicTextGap="5" onAction="#broadcastNotification">
@@ -208,6 +209,6 @@
</graphic>
</Button>
</HBox>
- </AnchorPane>
+ </HBox>
</bottom>
</BorderPane>
### src/main/resources/com/sparrowwallet/sparrow/wallet/settings.fxml
@@ -81,15 +81,15 @@
<DescriptorArea fx:id="descriptor" editable="false" styleClass="uneditable-codearea" prefHeight="27" maxHeight="27" />
</content>
</VirtualizedScrollPane>
- <Button accessibleText="Scan QR Code" fx:id="scanDescriptorQR" onAction="#scanDescriptorQR">
+ <Button accessibleText="Scan QR Code" fx:id="scanDescriptorQR" onAction="#scanDescriptorQR" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="CAMERA" />
</graphic>
<tooltip>
<Tooltip text="Scan a QR code" />
</tooltip>
</Button>
- <Button accessibleText="Show QR Code" fx:id="showDescriptorQR" onAction="#showDescriptorQR">
+ <Button accessibleText="Show QR Code" fx:id="showDescriptorQR" onAction="#showDescriptorQR" minWidth="-Infinity">
<graphic>
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="12" icon="QRCODE" />
</graphic>
### src/main/resources/com/sparrowwallet/sparrow/wallet/wallet.css
@@ -8,6 +8,10 @@
-fx-background-color: #3da0e3;
}
+.root.narrow-window .list-menu, .root.narrow-window .list-item {
+ -fx-pref-width: 110;
+}
+
.list-item * {
-fx-fill: #fff;
}Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.