Skip to content

Commit

Permalink
wizard: add Trezor Model 3 to hardware wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
selsta committed Dec 21, 2023
1 parent e9cd458 commit 93ed17f
Show file tree
Hide file tree
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
Expand Up @@ -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>
Expand Down
8 changes: 7 additions & 1 deletion wizard/WizardCreateDevice1.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 Model 3"; column2: "Trezor";}
}

ColumnLayout {
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 93ed17f

Please sign in to comment.