replace swipeview, send & receive now dialogs
send mostly working, though no user entered payment yet
This commit is contained in:
24
electrum/gui/qml/components/controls/FlatButton.qml
Normal file
24
electrum/gui/qml/components/controls/FlatButton.qml
Normal file
@@ -0,0 +1,24 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Controls 2.15
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property alias text: buttonLabel.text
|
||||
property alias font: buttonLabel.font
|
||||
|
||||
signal clicked
|
||||
|
||||
implicitWidth: buttonLabel.width + constants.paddingXXLarge
|
||||
implicitHeight: buttonLabel.height + constants.paddingXXLarge
|
||||
|
||||
Label {
|
||||
id: buttonLabel
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: root
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ Item {
|
||||
x: constants.paddingSmall
|
||||
width: delegate.width - 2*constants.paddingSmall
|
||||
|
||||
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: 1}
|
||||
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: constants.paddingSmall }
|
||||
|
||||
Image {
|
||||
readonly property variant tx_icons : [
|
||||
@@ -113,15 +113,17 @@ Item {
|
||||
}
|
||||
Component.onCompleted: updateText()
|
||||
}
|
||||
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: 1 }
|
||||
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: constants.paddingSmall }
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
visible: delegate.ListView.section == delegate.ListView.nextSection
|
||||
Layout.fillWidth: true
|
||||
// Layout.fillWidth: true
|
||||
Layout.preferredWidth: parent.width * 2/3
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.preferredHeight: constants.paddingTiny
|
||||
color: Qt.rgba(0,0,0,0.10)
|
||||
color: Material.background //Qt.rgba(0,0,0,0.10)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user