Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wizard: add Trezor Safe 3 to hardware wallets
Browse files Browse the repository at this point in the history
selsta committed Dec 25, 2023
1 parent e9cd458 commit b22f41b
Showing 5 changed files with 10 additions and 3 deletions.
Binary file added images/trezor3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
5 changes: 3 additions & 2 deletions qml.qrc
Original file line number Diff line number Diff line change
@@ -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/[email protected]</file>
<file>images/trezor3.png</file>
<file>images/trezorT.png</file>
<file>images/[email protected]</file>
<file>qtquickcontrols2.conf</file>
<file>images/write-down.png</file>
<file>images/write-down-white.png</file>
8 changes: 7 additions & 1 deletion wizard/WizardCreateDevice1.qml
Original file line number Diff line number Diff line change
@@ -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 Model 3") {
return "qrc:///images/trezor3.png";
}
} else if (hardwareWalletType == "Ledger") {
if (ledgerType == "Ledger Nano S") {
return "qrc:///images/ledgerNanoS.png";

0 comments on commit b22f41b

Please sign in to comment.