Browse Source

qml: fix a few leftovers

master
Sander van Grieken 3 years ago
parent
commit
421bd93047
  1. 4
      electrum/gui/qml/components/controls/InfoTextArea.qml
  2. 2
      electrum/gui/qml/components/controls/TextHighlightPane.qml
  3. 1
      electrum/gui/qml/components/main.qml

4
electrum/gui/qml/components/controls/InfoTextArea.qml

@ -15,7 +15,6 @@ TextHighlightPane {
property int iconStyle: InfoTextArea.IconStyle.Info property int iconStyle: InfoTextArea.IconStyle.Info
property alias textFormat: infotext.textFormat property alias textFormat: infotext.textFormat
// borderColor: constants.colorWarning
borderColor: iconStyle == InfoTextArea.IconStyle.Info borderColor: iconStyle == InfoTextArea.IconStyle.Info
? constants.colorInfo ? constants.colorInfo
: iconStyle == InfoTextArea.IconStyle.Warn : iconStyle == InfoTextArea.IconStyle.Warn
@ -38,12 +37,11 @@ TextHighlightPane {
Layout.preferredWidth: constants.iconSizeMedium Layout.preferredWidth: constants.iconSizeMedium
Layout.preferredHeight: constants.iconSizeMedium Layout.preferredHeight: constants.iconSizeMedium
} }
Label {
Label {
id: infotext id: infotext
Layout.fillWidth: true Layout.fillWidth: true
width: parent.width width: parent.width
text: invoice.userinfo
wrapMode: Text.Wrap wrapMode: Text.Wrap
} }
} }

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

@ -7,7 +7,7 @@ Pane {
padding: constants.paddingSmall padding: constants.paddingSmall
property color backgroundColor: Qt.lighter(Material.background, 1.15) property color backgroundColor: Qt.lighter(Material.background, 1.15)
property color borderColor: null property color borderColor: 'transparent'
background: Rectangle { background: Rectangle {
color: backgroundColor color: backgroundColor

1
electrum/gui/qml/components/main.qml

@ -66,6 +66,7 @@ ApplicationWindow
} }
Image { Image {
visible: Daemon.currentWallet
source: '../../icons/wallet.png' source: '../../icons/wallet.png'
Layout.preferredWidth: constants.iconSizeSmall Layout.preferredWidth: constants.iconSizeSmall
Layout.preferredHeight: constants.iconSizeSmall Layout.preferredHeight: constants.iconSizeSmall

Loading…
Cancel
Save