mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-24 23:00:36 -04:00
remove divider line from tx details window
This commit is contained in:
parent
15918c0c01
commit
a0fdb482e3
1 changed files with 3 additions and 12 deletions
|
@ -30,7 +30,6 @@ import static haveno.desktop.util.FormBuilder.addConfirmationLabelLabel;
|
||||||
import static haveno.desktop.util.FormBuilder.addConfirmationLabelTextFieldWithCopyIcon;
|
import static haveno.desktop.util.FormBuilder.addConfirmationLabelTextFieldWithCopyIcon;
|
||||||
import static haveno.desktop.util.FormBuilder.addLabelTxIdTextField;
|
import static haveno.desktop.util.FormBuilder.addLabelTxIdTextField;
|
||||||
import static haveno.desktop.util.FormBuilder.addMultilineLabel;
|
import static haveno.desktop.util.FormBuilder.addMultilineLabel;
|
||||||
import static haveno.desktop.util.FormBuilder.addTitledGroupBg;
|
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
|
||||||
|
@ -50,21 +49,20 @@ public class TxDetailsWindow extends Overlay<TxDetailsWindow> {
|
||||||
this.item = item;
|
this.item = item;
|
||||||
rowIndex = -1;
|
rowIndex = -1;
|
||||||
width = 918;
|
width = 918;
|
||||||
|
if (headLine == null)
|
||||||
|
headLine = Res.get("txDetailsWindow.headline");
|
||||||
createGridPane();
|
createGridPane();
|
||||||
gridPane.setHgap(15);
|
gridPane.setHgap(15);
|
||||||
addHeadLine();
|
addHeadLine();
|
||||||
addContent();
|
addContent();
|
||||||
addButtons();
|
addButtons();
|
||||||
addDontShowAgainCheckBox();
|
|
||||||
applyStyles();
|
applyStyles();
|
||||||
display();
|
display();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void addContent() {
|
protected void addContent() {
|
||||||
int rows = 10;
|
|
||||||
MoneroTxWallet tx = item.getTx();
|
MoneroTxWallet tx = item.getTx();
|
||||||
String memo = tx.getNote();
|
String memo = tx.getNote();
|
||||||
if (memo != null && !"".equals(memo)) rows++;
|
|
||||||
String txKey = null;
|
String txKey = null;
|
||||||
boolean isOutgoing = tx.getOutgoingTransfer() != null;
|
boolean isOutgoing = tx.getOutgoingTransfer() != null;
|
||||||
if (isOutgoing) {
|
if (isOutgoing) {
|
||||||
|
@ -74,18 +72,11 @@ public class TxDetailsWindow extends Overlay<TxDetailsWindow> {
|
||||||
// TODO (monero-java): wallet.getTxKey() should return null if key does not exist instead of throwing exception
|
// TODO (monero-java): wallet.getTxKey() should return null if key does not exist instead of throwing exception
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (txKey != null && !"".equals(txKey)) rows++;
|
|
||||||
|
|
||||||
// add title
|
|
||||||
addTitledGroupBg(gridPane, ++rowIndex, rows, Res.get("txDetailsWindow.headline"));
|
|
||||||
Region spacer = new Region();
|
|
||||||
spacer.setMinHeight(15);
|
|
||||||
gridPane.add(spacer, 0, ++rowIndex);
|
|
||||||
|
|
||||||
// add sent or received note
|
// add sent or received note
|
||||||
String resKey = isOutgoing ? "txDetailsWindow.xmr.noteSent" : "txDetailsWindow.xmr.noteReceived";
|
String resKey = isOutgoing ? "txDetailsWindow.xmr.noteSent" : "txDetailsWindow.xmr.noteReceived";
|
||||||
GridPane.setColumnSpan(addMultilineLabel(gridPane, ++rowIndex, Res.get(resKey), 0), 2);
|
GridPane.setColumnSpan(addMultilineLabel(gridPane, ++rowIndex, Res.get(resKey), 0), 2);
|
||||||
spacer = new Region();
|
Region spacer = new Region();
|
||||||
spacer.setMinHeight(15);
|
spacer.setMinHeight(15);
|
||||||
gridPane.add(spacer, 0, ++rowIndex);
|
gridPane.add(spacer, 0, ++rowIndex);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue