Browse Source

qml: styling

master
Sander van Grieken 3 years ago
parent
commit
8a8703d5ea
  1. 5
      electrum/gui/qml/components/History.qml
  2. 22
      electrum/gui/qml/components/InvoiceDialog.qml

5
electrum/gui/qml/components/History.qml

@ -59,7 +59,7 @@ Pane {
text: listview.sectionLabels[section] text: listview.sectionLabels[section]
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.topMargin: constants.paddingLarge Layout.topMargin: constants.paddingLarge
font.pixelSize: constants.fontSizeLarge font.pixelSize: constants.fontSizeMedium
color: Material.accentColor color: Material.accentColor
} }
} }
@ -76,8 +76,7 @@ Pane {
DelegateModelGroup { name: 'older'; includeByDefault: false } DelegateModelGroup { name: 'older'; includeByDefault: false }
] ]
delegate: HistoryItemDelegate { delegate: HistoryItemDelegate { }
}
} }
ScrollIndicator.vertical: ScrollIndicator { } ScrollIndicator.vertical: ScrollIndicator { }

22
electrum/gui/qml/components/InvoiceDialog.qml

@ -50,26 +50,14 @@ ElDialog {
columns: 2 columns: 2
TextHighlightPane { InfoTextArea {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: constants.paddingLarge
Layout.bottomMargin: constants.paddingLarge
visible: invoice.userinfo visible: invoice.userinfo
borderColor: constants.colorWarning text: invoice.userinfo
padding: constants.paddingXLarge iconStyle: InfoTextArea.IconStyle.Warn
RowLayout {
Image {
source: '../../icons/warning.png'
Layout.preferredWidth: constants.iconSizeMedium
Layout.preferredHeight: constants.iconSizeMedium
}
Label {
width: parent.width
text: invoice.userinfo
wrapMode: Text.Wrap
}
}
} }
Label { Label {

Loading…
Cancel
Save