aboutsummaryrefslogtreecommitdiff
path: root/components/LineEditMulti.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2021-02-04 11:45:25 +0000
committerxiphon <xiphon@protonmail.com>2021-02-08 20:30:05 +0000
commit2bb1092472c2dbc618b4ba3f1c109c3c8d8ab7c0 (patch)
tree05ea1893187ca4be3e2b68796187d6714c7a90d3 /components/LineEditMulti.qml
parentc1573c2c2acb0025ef3cec19e56061aa582b0d32 (diff)
downloadmonzero-gui-2bb1092472c2dbc618b4ba3f1c109c3c8d8ab7c0.tar.gz
monzero-gui-2bb1092472c2dbc618b4ba3f1c109c3c8d8ab7c0.tar.xz
monzero-gui-2bb1092472c2dbc618b4ba3f1c109c3c8d8ab7c0.zip
LineEditMulti: right padding, fontFamily, backtab, inline btns vcenter
Diffstat (limited to 'components/LineEditMulti.qml')
-rw-r--r--components/LineEditMulti.qml11
1 files changed, 7 insertions, 4 deletions
diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml
index 7f2e377e..a33893c9 100644
--- a/components/LineEditMulti.qml
+++ b/components/LineEditMulti.qml
@@ -44,7 +44,7 @@ ColumnLayout {
property alias placeholderText: placeholderLabel.text
property int inputPaddingLeft: 10
- property alias inputPaddingRight: input.rightPadding
+ property int inputPaddingRight: 10
property int inputPaddingTop: 10
property int inputPaddingBottom: 10
property int inputRadius: 4
@@ -75,6 +75,7 @@ ColumnLayout {
property bool labelButtonVisible: false
property string fontColor: MoneroComponents.Style.defaultFontColor
+ property string fontFamily: MoneroComponents.Style.fontRegular.name
property bool fontBold: false
property int fontSize: 16
@@ -158,16 +159,18 @@ ColumnLayout {
id: input
readOnly: false
addressValidation: false
+ KeyNavigation.backtab: item.KeyNavigation.backtab
KeyNavigation.priority: KeyNavigation.BeforeItem
KeyNavigation.tab: item.KeyNavigation.tab
Layout.fillWidth: true
leftPadding: item.inputPaddingLeft
- rightPadding: inlineButtons.width + 14
+ rightPadding: (inlineButtons.width > 0 ? inlineButtons.width + inlineButtons.spacing : 0) + inputPaddingRight
topPadding: item.inputPaddingTop
bottomPadding: item.inputPaddingBottom
wrapMode: item.wrapMode
+ font.family: item.fontFamily
fontSize: item.fontSize
fontBold: item.fontBold
fontColor: item.fontColor
@@ -201,9 +204,9 @@ ColumnLayout {
RowLayout {
id: inlineButtons
- anchors.top: parent.top
+ anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
- anchors.margins: 4
+ anchors.rightMargin: inputPaddingRight
spacing: 4
}
}