From: Claudio Cambra Date: Fri, 18 Nov 2022 17:09:22 +0000 (+0100) Subject: Match design of expire date spinbox to other text fields X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~79^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=79ec0e9748c25375bab7649228813ce02d6a9270;p=nextcloud-desktop.git Match design of expire date spinbox to other text fields Signed-off-by: Claudio Cambra --- 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