Browse Source

qml: styling main view

master
Sander van Grieken 3 years ago
parent
commit
10e7d8d926
  1. 12
      electrum/gui/qml/components/WalletMainView.qml

12
electrum/gui/qml/components/WalletMainView.qml

@ -1,6 +1,7 @@
import QtQuick 2.6 import QtQuick 2.6
import QtQuick.Controls 2.3 import QtQuick.Controls 2.3
import QtQuick.Layouts 1.0 import QtQuick.Layouts 1.0
import QtQuick.Controls.Material 2.0
import QtQml 2.6 import QtQml 2.6
import org.electrum 1.0 import org.electrum 1.0
@ -118,9 +119,15 @@ Item {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }
Button { Pane {
text: qsTr('Open/Create Wallet')
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
padding: 0
background: Rectangle {
color: Material.dialogColor
}
FlatButton {
text: qsTr('Open/Create Wallet')
icon.source: '../../icons/wallet.png'
onClicked: { onClicked: {
if (Daemon.availableWallets.rowCount() > 0) { if (Daemon.availableWallets.rowCount() > 0) {
stack.push(Qt.resolvedUrl('Wallets.qml')) stack.push(Qt.resolvedUrl('Wallets.qml'))
@ -136,6 +143,7 @@ Item {
} }
} }
} }
}
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent

Loading…
Cancel
Save