TxInfoDialog: improve UI

This commit is contained in:
tobtoht
2021-01-29 16:19:59 +01:00
parent 3e534fd536
commit 22abca4578
13 changed files with 165 additions and 78 deletions
+2 -2
View File
@@ -58,14 +58,14 @@ TxConfDialog::TxConfDialog(AppContext *ctx, PendingTransaction *tx, const QStrin
ui->label_address->setFont(ModelUtils::getMonospaceFont());
ui->label_address->setToolTip(address);
if (subaddressIndex.first >= 0) {
if (subaddressIndex.isValid()) {
ui->label_note->setText("Note: this is a churn transaction.");
ui->label_note->show();
ui->label_address->setStyleSheet(ColorScheme::GREEN.asStylesheet(true));
ui->label_address->setToolTip("Wallet receive address");
}
if (subaddressIndex.first == 0 && subaddressIndex.second == 0) {
if (subaddressIndex.isPrimary()) {
ui->label_address->setStyleSheet(ColorScheme::YELLOW.asStylesheet(true));
ui->label_address->setToolTip("Wallet change/primary address");
}