wizard: add Trezor Safe 3 to hardware wallets

This commit is contained in:
selsta 2023-12-21 14:04:24 +01:00
parent e9cd4588ae
commit c692fd1605
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
5 changed files with 10 additions and 3 deletions

BIN
images/trezor3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

Before

Width:  |  Height:  |  Size: 301 KiB

After

Width:  |  Height:  |  Size: 301 KiB

View File

@ -282,8 +282,9 @@
<file>images/ledgerNanoSPlus.png</file>
<file>images/ledgerNanoX.png</file>
<file>images/ledgerStax.png</file>
<file>images/trezor.png</file>
<file>images/trezor@2x.png</file>
<file>images/trezor3.png</file>
<file>images/trezorT.png</file>
<file>images/trezorT@2x.png</file>
<file>qtquickcontrols2.conf</file>
<file>images/write-down.png</file>
<file>images/write-down-white.png</file>

View File

@ -46,6 +46,7 @@ Rectangle {
property var deviceName: deviceNameModel.get(deviceNameDropdown.currentIndex).column2
property var ledgerType: deviceName == "Ledger" ? deviceNameModel.get(deviceNameDropdown.currentIndex).column1 : null
property var trezorType: deviceName == "Trezor" ? deviceNameModel.get(deviceNameDropdown.currentIndex).column1 : null
property var hardwareWalletType: wizardCreateDevice1.deviceName;
ListModel {
@ -56,6 +57,7 @@ Rectangle {
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
ListElement { column1: "Ledger Stax"; column2: "Ledger";}
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
ListElement { column1: "Trezor Safe 3"; column2: "Trezor";}
}
ColumnLayout {
@ -163,7 +165,11 @@ Rectangle {
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
source: {
if (hardwareWalletType == "Trezor") {
return "qrc:///images/trezor.png";
if (trezorType == "Trezor Model T") {
return "qrc:///images/trezorT.png";
} else if (trezorType == "Trezor Safe 3") {
return "qrc:///images/trezor3.png";
}
} else if (hardwareWalletType == "Ledger") {
if (ledgerType == "Ledger Nano S") {
return "qrc:///images/ledgerNanoS.png";