diff --git a/electrum/gui/qml/components/Addresses.qml b/electrum/gui/qml/components/Addresses.qml index 3008c9612..76fa768e2 100644 --- a/electrum/gui/qml/components/Addresses.qml +++ b/electrum/gui/qml/components/Addresses.qml @@ -90,7 +90,7 @@ Pane { Label { id: labelLabel font.pixelSize: model.label != '' ? constants.fontSizeLarge : constants.fontSizeSmall - text: model.label != '' ? model.label : '' + text: model.label != '' ? model.label : qsTr('') opacity: model.label != '' ? 1.0 : 0.8 elide: Text.ElideRight maximumLineCount: 2 diff --git a/electrum/gui/qml/components/controls/HistoryItemDelegate.qml b/electrum/gui/qml/components/controls/HistoryItemDelegate.qml index 66599ffe9..28e26cfcc 100644 --- a/electrum/gui/qml/components/controls/HistoryItemDelegate.qml +++ b/electrum/gui/qml/components/controls/HistoryItemDelegate.qml @@ -49,13 +49,13 @@ Item { Image { readonly property variant tx_icons : [ - "../../../icons/unconfirmed.png", - "../../../icons/clock1.png", - "../../../icons/clock2.png", - "../../../icons/clock3.png", - "../../../icons/clock4.png", - "../../../icons/clock5.png", - "../../../icons/confirmed_bw.png" + '../../../icons/unconfirmed.png', + '../../../icons/clock1.png', + '../../../icons/clock2.png', + '../../../icons/clock3.png', + '../../../icons/clock4.png', + '../../../icons/clock5.png', + '../../../icons/confirmed_bw.png' ] Layout.preferredWidth: constants.iconSizeLarge @@ -63,7 +63,7 @@ Item { Layout.alignment: Qt.AlignVCenter Layout.rowSpan: 2 source: model.lightning - ? "../../../icons/lightning.png" + ? '../../../icons/lightning.png' : model.complete && model.section != 'local' ? tx_icons[Math.min(6,model.confirmations)] : '../../../icons/offline_tx.png' @@ -72,7 +72,7 @@ Item { Label { Layout.fillWidth: true font.pixelSize: model.label !== '' ? constants.fontSizeLarge : constants.fontSizeMedium - text: model.label !== '' ? model.label : '' + text: model.label !== '' ? model.label : qsTr('') color: model.label !== '' ? Material.foreground : constants.mutedForeground wrapMode: Text.Wrap maximumLineCount: 2 @@ -119,11 +119,10 @@ Item { Rectangle { visible: delegate.ListView.section == delegate.ListView.nextSection - // Layout.fillWidth: true Layout.preferredWidth: parent.width * 2/3 Layout.alignment: Qt.AlignHCenter Layout.preferredHeight: constants.paddingTiny - color: Material.background //Qt.rgba(0,0,0,0.10) + color: Material.background } }