From 79ec0e9748c25375bab7649228813ce02d6a9270 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 18 Nov 2022 18:09:22 +0100 Subject: [PATCH] Match design of expire date spinbox to other text fields Signed-off-by: Claudio Cambra --- src/gui/filedetails/ShareDetailsPage.qml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/gui/filedetails/ShareDetailsPage.qml b/src/gui/filedetails/ShareDetailsPage.qml index 1376d3ca2..403b228c9 100644 --- a/src/gui/filedetails/ShareDetailsPage.qml +++ b/src/gui/filedetails/ShareDetailsPage.qml @@ -589,11 +589,17 @@ Page { up.indicator: Item {} down.indicator: Item {} - background: Rectangle { - radius: Style.slightlyRoundedButtonRadius - border.width: Style.normalBorderWidth - border.color: expireDateSpinBox.activeFocus ? Style.ncBlue : Style.menuBorder - color: Style.backgroundColor + padding: 0 + background: null + contentItem: NCInputTextField { + text: expireDateSpinBox.textFromValue(expireDateSpinBox.value, expireDateSpinBox.locale) + readOnly: !expireDateSpinBox.editable + validator: expireDateSpinBox.validator + inputMethodHints: Qt.ImhFormattedNumbersOnly + onAccepted: { + expireDateSpinBox.value = expireDateSpinBox.valueFromText(text, expireDateSpinBox.locale); + expireDateSpinBox.valueModified(); + } } value: expireDateReduced -- 2.39.5