Skip to content

Commit 3d3a39e

Browse files
committed
qml: Shorten the DesktopWallet NetworkIndicator
1 parent 6e42abc commit 3d3a39e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/qml/components/NetworkIndicator.qml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.bitcoincore.qt 1.0
1212
Button {
1313
id: root
1414
property color bgColor
15+
property bool shorten: false
1516
property bool show: true
1617
property int textSize: 15
1718
topPadding: 2
@@ -48,7 +49,7 @@ Button {
4849
PropertyChanges {
4950
target: root
5051
visible: true
51-
text: qsTr("Test Network")
52+
text: shorten ? qsTr("Testnet") : qsTr("Test Network")
5253
bgColor: Theme.color.green
5354
}
5455
},
@@ -57,7 +58,7 @@ Button {
5758
PropertyChanges {
5859
target: root
5960
visible: true
60-
text: qsTr("Signet Network")
61+
text: shorten ? qsTr("Signet") : qsTr("Signet Network")
6162
bgColor: Theme.color.amber
6263
}
6364
},
@@ -66,7 +67,7 @@ Button {
6667
PropertyChanges {
6768
target: root
6869
visible: true
69-
text: qsTr("Regtest Mode")
70+
text: shorten ? qsTr("Regtest") : qsTr("Regtest Mode")
7071
bgColor: Theme.color.blue
7172
}
7273
}

src/qml/pages/wallet/DesktopWallets.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Page {
6464
NetworkIndicator {
6565
textSize: 11
6666
Layout.rightMargin: 5
67+
shorten: true
6768
}
6869
NavigationTab {
6970
Layout.preferredWidth: 30

0 commit comments

Comments
 (0)