Skip to content

Commit

Permalink
Match design of expire date spinbox to other text fields
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Nov 18, 2022
1 parent da9a2b7 commit 6f70095
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/gui/filedetails/ShareDetailsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f70095

Please sign in to comment.