Merge pull request #3761

6e24930 WizardOpenWallet1: new wallet icons; hide 'Mainnet' label in simple mode (rating89us)
This commit is contained in:
luigi1111 2021-12-02 00:08:19 -06:00
commit 69dc0b3570
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
14 changed files with 21 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 742 B

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 678 B

10
qml.qrc
View file

@ -213,6 +213,16 @@
<file>images/restore-wallet-from-hardware.png</file>
<file>images/open-wallet-from-file@2x.png</file>
<file>images/open-wallet-from-file.png</file>
<file>images/open-wallet-from-file-mainnet@2x.png</file>
<file>images/open-wallet-from-file-mainnet.png</file>
<file>images/open-wallet-from-file-stagenet@2x.png</file>
<file>images/open-wallet-from-file-stagenet.png</file>
<file>images/open-wallet-from-file-testnet@2x.png</file>
<file>images/open-wallet-from-file-testnet.png</file>
<file>images/open-wallet-from-file-view-only@2x.png</file>
<file>images/open-wallet-from-file-view-only.png</file>
<file>images/open-wallet-from-file-trezor@2x.png</file>
<file>images/open-wallet-from-file-trezor.png</file>
<file>images/restore-wallet@2x.png</file>
<file>images/restore-wallet.png</file>
<file>images/create-wallet@2x.png</file>

View file

@ -163,7 +163,7 @@ Rectangle {
return parent.width / 3
}
property string networkType: {
if(networktype === 0) return qsTr("Mainnet");
if(networktype === 0 && appWindow.walletMode >= 2) return qsTr("Mainnet");
else if(networktype === 1) return qsTr("Testnet");
else if(networktype === 2) return qsTr("Stagenet");
return "";
@ -218,7 +218,14 @@ Rectangle {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit
source: "qrc:///images/open-wallet-from-file.png"
source: {
if (networktype === 0 && fileName.toLowerCase().includes("viewonly")) return "qrc:///images/open-wallet-from-file-view-only.png";
else if (networktype === 0 && fileName.toLowerCase().includes("trezor")) return "qrc:///images/open-wallet-from-file-trezor.png";
else if (networktype === 0 && fileName.toLowerCase().includes("ledger")) return "qrc:///images/restore-wallet-from-hardware.png";
else if (networktype === 0) return "qrc:///images/open-wallet-from-file-mainnet.png";
else if (networktype === 1) return "qrc:///images/open-wallet-from-file-testnet.png";
else if (networktype === 2) return "qrc:///images/open-wallet-from-file-stagenet.png";
}
visible: {
if(!isOpenGL) return true;
if(MoneroComponents.Style.blackTheme) return true;
@ -263,12 +270,12 @@ Rectangle {
wrapMode: Text.WordWrap
leftPadding: 0
topPadding: networktype !== -1 ? 8 : 4
topPadding: networkType !== "" ? 8 : 4
bottomPadding: 0
}
Text {
visible: networktype !== -1
visible: networkType !== ""
Layout.preferredHeight: 24
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
Layout.fillWidth: true