From c692fd16051639f366b99f474fdb66e5675f065e Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 21 Dec 2023 14:04:24 +0100 Subject: wizard: add Trezor Safe 3 to hardware wallets --- images/trezor.png | Bin 74286 -> 0 bytes images/trezor3.png | Bin 0 -> 65928 bytes images/trezor@2x.png | Bin 307843 -> 0 bytes images/trezorT.png | Bin 0 -> 74286 bytes images/trezorT@2x.png | Bin 0 -> 307843 bytes qml.qrc | 5 +++-- wizard/WizardCreateDevice1.qml | 8 +++++++- 7 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 images/trezor.png create mode 100644 images/trezor3.png delete mode 100644 images/trezor@2x.png create mode 100644 images/trezorT.png create mode 100644 images/trezorT@2x.png diff --git a/images/trezor.png b/images/trezor.png deleted file mode 100644 index bdd1b091..00000000 Binary files a/images/trezor.png and /dev/null differ diff --git a/images/trezor3.png b/images/trezor3.png new file mode 100644 index 00000000..d0fc03eb Binary files /dev/null and b/images/trezor3.png differ diff --git a/images/trezor@2x.png b/images/trezor@2x.png deleted file mode 100644 index a5687cbe..00000000 Binary files a/images/trezor@2x.png and /dev/null differ diff --git a/images/trezorT.png b/images/trezorT.png new file mode 100644 index 00000000..bdd1b091 Binary files /dev/null and b/images/trezorT.png differ diff --git a/images/trezorT@2x.png b/images/trezorT@2x.png new file mode 100644 index 00000000..a5687cbe Binary files /dev/null and b/images/trezorT@2x.png differ diff --git a/qml.qrc b/qml.qrc index 4915d4ae..2b3dfce2 100644 --- a/qml.qrc +++ b/qml.qrc @@ -282,8 +282,9 @@ images/ledgerNanoSPlus.png images/ledgerNanoX.png images/ledgerStax.png - images/trezor.png - images/trezor@2x.png + images/trezor3.png + images/trezorT.png + images/trezorT@2x.png qtquickcontrols2.conf images/write-down.png images/write-down-white.png diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml index 145c5fc1..559437f7 100644 --- a/wizard/WizardCreateDevice1.qml +++ b/wizard/WizardCreateDevice1.qml @@ -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"; -- cgit v1.2.3