Browse Source

qml: styling CPFP dialog, Toaster, GenericShareDialog

master
Sander van Grieken 3 years ago
parent
commit
9c73a55c45
  1. 4
      electrum/gui/qml/components/CpfpBumpFeeDialog.qml
  2. 6
      electrum/gui/qml/components/GenericShareDialog.qml
  3. 2
      electrum/gui/qml/components/controls/Toaster.qml

4
electrum/gui/qml/components/CpfpBumpFeeDialog.qml

@ -16,6 +16,7 @@ ElDialog {
signal txaccepted
title: qsTr('Bump Fee')
iconSource: Qt.resolvedUrl('../../icons/rocket.png')
width: parent.width
height: parent.height
@ -182,8 +183,7 @@ ElDialog {
delegate: TextHighlightPane {
Layout.columnSpan: 2
Layout.fillWidth: true
padding: 0
leftPadding: constants.paddingSmall
RowLayout {
width: parent.width
Label {

6
electrum/gui/qml/components/GenericShareDialog.qml

@ -54,9 +54,9 @@ ElDialog {
}
TextHighlightPane {
Layout.alignment: Qt.AlignHCenter
Layout.leftMargin: constants.paddingMedium
Layout.rightMargin: constants.paddingMedium
Layout.fillWidth: true
Layout.maximumWidth: qr.width
Label {
width: parent.width
text: dialog.text
@ -69,6 +69,8 @@ ElDialog {
}
Label {
Layout.leftMargin: constants.paddingMedium
Layout.rightMargin: constants.paddingMedium
visible: dialog.text_help
text: dialog.text_help
wrapMode: Text.Wrap

2
electrum/gui/qml/components/controls/Toaster.qml

@ -17,7 +17,7 @@ Item {
function show(item, text) {
_text = text
var r = item.mapToItem(parent, item.x, item.y)
x = r.x - item.width + 0.5*(item.width - toaster.width)
x = r.x + 0.5*(item.width - toaster.width)
y = r.y - toaster.height - constants.paddingLarge
toaster._y = y - toaster.height
ani.restart()

Loading…
Cancel
Save