From 3a49114af6fda4b0c8cb7fc3a93f345823eb71f5 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 21 Oct 2024 11:15:22 +0800 Subject: [PATCH 1/2] Remove background from textfields to fix errors Fixes the following errors: ShareeSearchField.qml:53:17: QML QQuickRectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x600001d42140, parent=0x0, geometry=0,0 0x0)). NCInputTextField.qml:57:17: QML QQuickRectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x600001d42220, parent=0x0, geometry=0,0 0x0)). Signed-off-by: Claudio Cambra --- src/gui/filedetails/NCInputTextField.qml | 5 ----- src/gui/filedetails/ShareeSearchField.qml | 6 ------ 2 files changed, 11 deletions(-) diff --git a/src/gui/filedetails/NCInputTextField.qml b/src/gui/filedetails/NCInputTextField.qml index 27c4236aa164..6a9b9f17023a 100644 --- a/src/gui/filedetails/NCInputTextField.qml +++ b/src/gui/filedetails/NCInputTextField.qml @@ -54,10 +54,5 @@ TextField { } verticalAlignment: Qt.AlignVCenter - background: Rectangle { - border.color: palette.dark - radius: Style.trayWindowRadius - color: palette.window - } } diff --git a/src/gui/filedetails/ShareeSearchField.qml b/src/gui/filedetails/ShareeSearchField.qml index 6017eea72f55..46fa73d9d32f 100644 --- a/src/gui/filedetails/ShareeSearchField.qml +++ b/src/gui/filedetails/ShareeSearchField.qml @@ -50,12 +50,6 @@ TextField { verticalAlignment: Qt.AlignVCenter implicitHeight: Math.max(Style.talkReplyTextFieldPreferredHeight, contentHeight) - background: Rectangle { - border.color: palette.dark - radius: Style.trayWindowRadius - color: palette.window - } - onActiveFocusChanged: triggerSuggestionsVisibility() onTextChanged: triggerSuggestionsVisibility() Keys.onPressed: { From 3c983db1a97b27d1d7c2e41b4ddab5a481874b28 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 21 Oct 2024 11:16:10 +0800 Subject: [PATCH 2/2] Add small top margin to shareview Fixes highlight of sharee search field with macOS styling Signed-off-by: Claudio Cambra --- src/gui/filedetails/ShareView.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/filedetails/ShareView.qml b/src/gui/filedetails/ShareView.qml index 425e442800ba..d5c63e8d6b93 100644 --- a/src/gui/filedetails/ShareView.qml +++ b/src/gui/filedetails/ShareView.qml @@ -142,6 +142,7 @@ ColumnLayout { ShareeSearchField { id: shareeSearchField Layout.fillWidth: true + Layout.topMargin: Style.smallSpacing Layout.leftMargin: root.horizontalPadding Layout.rightMargin: root.horizontalPadding