Browse Source

qml: cleanup prev commit, add default icons to MessageDialog, add question icon

master
Sander van Grieken 3 years ago
parent
commit
7f0f09a90b
  1. BIN
      electrum/gui/icons/question.png
  2. 3
      electrum/gui/qml/components/MessageDialog.qml
  3. 6
      electrum/gui/qml/components/Preferences.qml

BIN
electrum/gui/icons/question.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

3
electrum/gui/qml/components/MessageDialog.qml

@ -8,6 +8,9 @@ import "controls"
ElDialog {
id: dialog
title: qsTr("Message")
iconSource: yesno
? Qt.resolvedUrl('../../icons/question.png')
: Qt.resolvedUrl('../../icons/info.png')
property bool yesno: false
property alias text: message.text

6
electrum/gui/qml/components/Preferences.qml

@ -245,10 +245,6 @@ Pane {
text: qsTr('Lightning')
}
Label {
text: qsTr('Lightning Routing')
}
RowLayout {
Layout.columnSpan: 2
Layout.fillWidth: true
@ -260,7 +256,7 @@ Pane {
if (activeFocus) {
if (!checked) {
var dialog = app.messageDialog.createObject(app, {
text: qsTr('Using plain gossip mode is not recommended. Are you sure?'),
text: qsTr('Using plain gossip mode is not recommended on mobile. Are you sure?'),
yesno: true
})
dialog.yesClicked.connect(function() {

Loading…
Cancel
Save